Commit 16d8ec8bba350a9be76e8d58471597eb1ac19492
1 parent
6067d57a10
Exists in
master
perbaikan pemanggilan callbackReport
Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff
xmlout.js
... | ... | @@ -115,7 +115,7 @@ function _topupRequest(task, pendingOnConnectError) { |
115 | 115 | } else if (error) { |
116 | 116 | |
117 | 117 | logger.warn('XMLRPC Client Error', {requestId: task['requestId'], err: error}); |
118 | - callbackReport(task['requestId'], '68', 'XMLRPC Client Error: ' + error); | |
118 | + callbackReport(task['requestId'], '68', 'XMLRPC Client Error: ' + error, null, error.body); | |
119 | 119 | return; |
120 | 120 | |
121 | 121 | } |
... | ... | @@ -134,7 +134,7 @@ function _topupRequest(task, pendingOnConnectError) { |
134 | 134 | value['MESSAGE'] = 'SN=' + parseSN(value['MESSAGE']) + '; ' + value['MESSAGE']; |
135 | 135 | } |
136 | 136 | |
137 | - callbackReport(value['REQUESTID'], value['RESPONSECODE'], value['MESSAGE']); | |
137 | + callbackReport(value['REQUESTID'], value['RESPONSECODE'], value['MESSAGE'], null, JSON.stringify(value)); | |
138 | 138 | }); |
139 | 139 | } |
140 | 140 | |
... | ... | @@ -168,7 +168,7 @@ function createServer() { |
168 | 168 | value['MESSAGE'] = 'SN=' + parseSN(value['MESSAGE']) + '; ' + value['MESSAGE']; |
169 | 169 | } |
170 | 170 | |
171 | - callbackReport(value['REQUESTID'], value['RESPONSECODE'], value['MESSAGE']); | |
171 | + callbackReport(value['REQUESTID'], value['RESPONSECODE'], value['MESSAGE'], null, JSON.stringify(value)); | |
172 | 172 | } |
173 | 173 | |
174 | 174 | callback(null, 'ACK REPORT OK'); |
... | ... | @@ -249,12 +249,12 @@ function checkStatus(task) { |
249 | 249 | // Results of the method response |
250 | 250 | if (error) { |
251 | 251 | logger.warn('Error requesting topUpInquiry: ', {err: error, params: params}); |
252 | - callbackReport(task.requestId, '68', 'Error requesting topUpInquiry: ' + error); | |
252 | + callbackReport(task.requestId, '68', 'Error requesting topUpInquiry: ' + error, null, JSON.stringify(error)); | |
253 | 253 | return; |
254 | 254 | } |
255 | 255 | logger.info('Method response for \'' + methodName, {response: value}); |
256 | 256 | |
257 | - callbackReport(task.requestId, value['RESPONSECODE'], value['MESSAGE']); | |
257 | + callbackReport(task.requestId, value['RESPONSECODE'], value['MESSAGE'], null, JSON.stringify(value)); | |
258 | 258 | }); |
259 | 259 | } |
260 | 260 |