Commit 1154ff807af262db6581672ef8df54b5fd2b02ef

Authored by Adhidarma Hadiwinoto
1 parent ee8f9a71b9
Exists in master

sn dari field SN

Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff

... ... @@ -108,7 +108,10 @@ function _topupRequest(task) {
108 108 value['RESPONSECODE'] = '68';
109 109 }
110 110  
111   - if (value['RESPONSECODE'] == '00' && config.h2h_out.parse_sn == 'YES') {
  111 + if (value['RESPONSECODE'] == '00' && value['SN'] && value['SN'].trim()) {
  112 + value['MESSAGE'] = 'SN=' + value['SN'].trim() + '; ' + value['MESSAGE'];
  113 + }
  114 + else if (value['RESPONSECODE'] == '00' && config.h2h_out.parse_sn == 'YES') {
112 115 value['MESSAGE'] = 'SN=' + parseSN(value['MESSAGE']) + '; ' + value['MESSAGE'];
113 116 }
114 117