From f1f98cf8d0581f550458f9af8d3a83b28eb71d5b Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <gua@adhisimon.org> Date: Tue, 16 Jun 2015 18:34:21 +0700 Subject: [PATCH] retry if 68 --- httppulsakita.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/httppulsakita.js b/httppulsakita.js index 9b0b0ad..5adb3db 100644 --- a/httppulsakita.js +++ b/httppulsakita.js @@ -84,6 +84,12 @@ function topupRequest(task, retry) { callbackReport(task['requestId'], response_code, message); + if (response_code == '68') { + setTimeout(function() { + topupRequest(task, 5); + }, 60000); + } + }); }); } -- 1.9.0