Commit c03ef90c43bc170e58166a14aaa2aa2f368569f8

Authored by Adhidarma Hadiwinoto
1 parent af89e25c82
Exists in master

adaptasi beberapa pesan ss

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

... ... @@ -308,6 +308,9 @@ function responseCodeFromMessage(message) {
308 308 else if (message.toLowerCase().indexOf('nomor yang anda masukan salah') >= 0) {
309 309 return '14';
310 310 }
  311 + else if (message.toLowerCase().indexOf('nomor yang anda masukkan salah') >= 0) {
  312 + return '14';
  313 + }
311 314 else if (message.toLowerCase().indexOf('nomor telepon seluler salah') >= 0) {
312 315 return '14';
313 316 }
... ... @@ -338,6 +341,9 @@ function responseCodeFromMessage(message) {
338 341 else if (message.search(/stok product .* tidak tersedia ke nomor .* dari pilihan2 yg tersedia/i) >= 0) {
339 342 return '13';
340 343 }
  344 + else if (message.search(/stok produk .* gangguan ke no tujuan/i) >= 0) {
  345 + return '13';
  346 + }
341 347  
342 348 return;
343 349 }