Commit 9aba0746638d89d41c5c285e20fb48bde3b025bd
1 parent
8a5b9fc201
Exists in
master
hanya set sn jika ada original sn
Showing 1 changed file with 8 additions and 1 deletions Side-by-side Diff
partner-datacell.js
... | ... | @@ -139,6 +139,7 @@ function topupResponseHandler(body, request_id) { |
139 | 139 | var sn = parseSN(message); |
140 | 140 | console.log ('SN Operator: ' + sn); |
141 | 141 | |
142 | + /* | |
142 | 143 | if (!sn) { |
143 | 144 | |
144 | 145 | console.log('Missing real operator SN, using SN from suplier'); |
... | ... | @@ -149,7 +150,13 @@ function topupResponseHandler(body, request_id) { |
149 | 150 | sn = ''; |
150 | 151 | } |
151 | 152 | } |
152 | - message = 'SN=' + sn + '; ' + message; | |
153 | + */ | |
154 | + | |
155 | + if (sn) { | |
156 | + message = 'SN=' + sn + '; ' + message; | |
157 | + } else { | |
158 | + message = message + ' - ' + ' Unknown original SN'; | |
159 | + } | |
153 | 160 | } |
154 | 161 | |
155 | 162 | callbackReport(request_id, response_code, message); |