Commit 03f3be385322de58c971569a72b988b7a7bee727
1 parent
34fdaca2
Exists in
master
and in
1 other branch
fix bugs
Showing
2 changed files
with
7 additions
and
6 deletions
Show diff stats
ais-structure/src/modules/helper/connection.js
| ... | ... | @@ -337,7 +337,7 @@ function getUrl(params,limit) |
| 337 | 337 | }; |
| 338 | 338 | |
| 339 | 339 | |
| 340 | - params.body = {}; | |
| 340 | + // params.body = {}; | |
| 341 | 341 | // params.body.a = "aaa"; |
| 342 | 342 | // params.body.b = "bbb"; |
| 343 | 343 | // params.body.papa = []; |
| ... | ... | @@ -354,9 +354,9 @@ function getUrl(params,limit) |
| 354 | 354 | // params.body.commandId.push("8"); |
| 355 | 355 | // params.body.c = "ccc"; |
| 356 | 356 | // params.body.fields = "a,b,c,d"; |
| 357 | - params.body.customerId = ["1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6"]; | |
| 358 | - limit = 100; | |
| 359 | - console.log(params.body); | |
| 357 | + // params.body.customerId = ["1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6","1b6a768e52e9a1e11518a1c6"]; | |
| 358 | + // limit = 100; | |
| 359 | + // console.log(params.body); | |
| 360 | 360 | if(params.body) |
| 361 | 361 | { |
| 362 | 362 | var first = true; | ... | ... |
ais-structure/src/modules/membercard/getMembership.ctrl.js
| ... | ... | @@ -37,6 +37,7 @@ exports.getMembership = async function (req, res, next) { |
| 37 | 37 | { |
| 38 | 38 | log.addSuccessSummary(req,req.query.clientName,method+"_"+getCmd,"null","Success"); |
| 39 | 39 | var objectData = Object.assign(req.query,req.params); |
| 40 | + | |
| 40 | 41 | const result = await connection.requestJsonToD01(req,objectData,sendCusCmd,method); |
| 41 | 42 | log.logDetail.addInput(req,d01,method+"_"+sendCusCmd,constant.RESPONSE,result,result.response); |
| 42 | 43 | |
| ... | ... | @@ -53,8 +54,8 @@ exports.getMembership = async function (req, res, next) { |
| 53 | 54 | for(var i = 0; i < resultObj.resultData.length; i++){ |
| 54 | 55 | cusIdArr.push(resultObj.resultData[i].customerId) |
| 55 | 56 | } |
| 56 | - objectData = {customerId : cusIdArr} | |
| 57 | - const resultMemberCard = await connection.requestJsonToD01(req,objectData,sendMemCmd,method); | |
| 57 | + var objectMemberCardData = {customerId : cusIdArr} | |
| 58 | + const resultMemberCard = await connection.requestJsonToD01(req,objectMemberCardData,sendMemCmd,method); | |
| 58 | 59 | |
| 59 | 60 | //Get MemberCard handler |
| 60 | 61 | if(typeof resultMemberCard.err === 'undefined'){ | ... | ... |