Commit 1de2e1fabd073d2cd1393ff8b62e67bfaa7e98ae
1 parent
2114c2b2
Exists in
develop
update mockup
Showing
5 changed files
with
29 additions
and
3 deletions
Show diff stats
app.js
... | ... | @@ -411,6 +411,8 @@ app.get('/FinancialTransaction/MGPaymentInfo/getPaymentList/:ban/:pageSize/:page |
411 | 411 | app.post('/MGContractInfo/MGContractInfo/getCurrentContractList', require('./intx').getCurrentContractList); |
412 | 412 | app.post('/MGCustomerInfo/MGCustomerInfo/getAccountInfo', require('./intx').getAccountInfo); |
413 | 413 | |
414 | +app.get('/v1/get_BillingAddress/:accountId/:pageNo', require('./postpay_true').getBillingAddress); //postpay | |
415 | + | |
414 | 416 | app.post('/v1/get_AccountCustomerInfo/', require('./postpay_true').getAccountCustomerInfo); //postpay |
415 | 417 | app.get('/v1/get_LastInvoiceList/:accountId/:pageSize', require('./postpay_true').getLastInvoiceList); //postpay |
416 | 418 | app.post('/v1/OSB/get_LastDocumentList/', require('./postpay_true').getLastDocumentList); //postpay |
... | ... | @@ -432,6 +434,8 @@ app.post('/CCPGW_ServiceWeb/Services/QryBalanceList', express.text({type:"*/*"}) |
432 | 434 | |
433 | 435 | app.get('/api/callback', require('./line').callback); |
434 | 436 | |
437 | +app.post('/sendSMS', require('./sms').sendSMS); | |
438 | + | |
435 | 439 | app.get('/api/random/leader', function (req, res) { |
436 | 440 | const months = ["เกมส์", "โน๊ต setup", "โน๊ต วัศรุต", "แบงค์", "มอส", "ปิ๊ค", "เต้นพอไม่ต้องตื่น", "เปา", "นัท", "kik", "new", "ann","na", "boky", "eve", "miki", "pla", "sugar"]; |
437 | 441 | // const months = [ "ann"]; | ... | ... |
ccbs.js
... | ... | @@ -271,7 +271,7 @@ module.exports.accumulationUOMGroupList = async (req, res) => { |
271 | 271 | "rerateIndicator": "N" |
272 | 272 | } |
273 | 273 | |
274 | - res.status(200).send(responseErr) | |
274 | + res.status(200).send(response) | |
275 | 275 | } |
276 | 276 | |
277 | 277 | module.exports.getPrimaryKeyListWithoutResourceType = async (req, res) => { | ... | ... |
ccp.js
... | ... | @@ -122,7 +122,7 @@ module.exports.balance = async (req, res) => { |
122 | 122 | <acctResName>Calling_Bonus</acctResName> |
123 | 123 | <balanceID>8667338666</balanceID> |
124 | 124 | <acctResCode>2</acctResCode> |
125 | - <balance>0</balance> | |
125 | + <balance>1000</balance> | |
126 | 126 | <effDate>2018-03-13 07-21-06</effDate> |
127 | 127 | <expDate>2050-12-31 07-21-06</expDate> |
128 | 128 | <updateDate>2018-12-27 17-29-19</updateDate> | ... | ... |
int.js
... | ... | @@ -0,0 +1,22 @@ |
1 | +module.exports.sendSMS = async (req, res) => { | |
2 | + console.log('===== GET sendSMS =====') | |
3 | + console.log('url', req.originalUrl); | |
4 | + console.log('headers', req.headers); | |
5 | + console.log('query', req.query); | |
6 | + console.log('params', req.params); | |
7 | + | |
8 | + let response = `<XML> | |
9 | + <STATUS>OK</STATUS> | |
10 | + <DETAIL>SUCCESS</DETAIL> | |
11 | + <SMID>1502000283578</SMID> | |
12 | + </XML>` | |
13 | + | |
14 | + | |
15 | + let responseErr = `<XML> | |
16 | + <STATUS>ERR</STATUS> | |
17 | + <DETAIL>CORP:INVALID_FROM</DETAIL> | |
18 | + <SMID></SMID> | |
19 | + </XML>` | |
20 | + | |
21 | + res.send(response) | |
22 | +} | |
0 | 23 | \ No newline at end of file | ... | ... |