From 5df338a4a89eeef688af31641e9c0d43e8bffa62 Mon Sep 17 00:00:00 2001 From: Nattapon W Date: Fri, 18 Sep 2020 21:03:08 +0700 Subject: [PATCH] update ssb --- ssb.js | 58 +++++++++++++++++++++++----------------------------------- 1 file changed, 23 insertions(+), 35 deletions(-) diff --git a/ssb.js b/ssb.js index c782ff1..71419d4 100644 --- a/ssb.js +++ b/ssb.js @@ -82,42 +82,30 @@ module.exports.queryCurrentPackage = async (req, res) => { console.log('body', req.body); let response = { - "resultCode": "20000", + "subscriberPackage": { + "profileType": "NON AIS", + "mobileNo": "0990621789", + "packageList": [ + { + "promotionName": "INS_NF NG PLAY PREMIUM IAP APPLE TV 99M", + "promotionCode": "4007", + "startDate": "2020-08-01 11:00:13", + "status": "A", + "packageDescEN": null, + "promotionSeq": "4007", + "packageNameTH": null, + "endDate": "2028-10-31 23:59:59", + "integrationName": null, + "packageDescTH": null, + "packageNameEN": null, + "packageType": null, + "packageID": null + } + ] + }, "developerMessage": "Success", - "subscriberPackage":{ - "mobileNo": "0923029000", - "profileType":"Prepaid INS", - "packageList":[ - { - "promotionName": "โทรสบาย[1.50B]", - "packageNameEN":"xxxxxxxxx", - "packageNameTH":"xxxxxxxxx", - - "startDate": "2018-05-31 14:23:03", - "endDate": "2018-05-31 14:23:03", - "promotionCode": "7400110", - "packageType":"Main", - "integrationName":"INS_3G 1000B 60Days Net 4Mbps SWifi UL", - "packageDescEN":"xxxxxxxxx", - "packageDescTH":"xxxxxxxxx", - "promotionSeq":"1002" - }, - { - "promotionName": "M NBA Free Trial 1M 199Baht Monthly", - "packageNameEN":"xxxxxxxxx", - "packageNameTH":"xxxxxxxxx", - "promotionCode": "7400110", - "startDate": "2018-05-31 14:23:03", - "endDate": "2018-05-31 14:23:03", - "integrationName":"INS_3G 1000B 60Days Net 4Mbps SWifi UL", - "packageType":"Ontop Extra", - "packageDescEN":"xxxxxxxxx", - "packageDescTH":"xxxxxxxxx", - "promotionSeq":"1003" - } - ] - } - } + "resultCode": "20000" + } res.send(response) } -- libgit2 0.21.2