Commit 6b41e130 by 宋毅

tj

parent 86b16ba0
...@@ -107,7 +107,7 @@ class tmqueryCtl extends CtlBase { ...@@ -107,7 +107,7 @@ class tmqueryCtl extends CtlBase {
return system.getResult(null, "处理请求失败"); return system.getResult(null, "处理请求失败");
} }
if (["jd"].indexOf(pobj.actionProcess) >= 0 && pobj.actionType == "subTmOrder") { if (["jd"].indexOf(pobj.actionProcess) >= 0 && pobj.actionType == "subTmOrder") {
var opPayPageInfoResult = await this.opPayPageInfo(pobj, req); var opPayPageInfoResult = await this.opPayPageInfo(pobj, orderResult, req);
return opPayPageInfoResult; return opPayPageInfoResult;
} }
return result; return result;
...@@ -242,7 +242,7 @@ class tmqueryCtl extends CtlBase { ...@@ -242,7 +242,7 @@ class tmqueryCtl extends CtlBase {
return system.getResultFail(-200, "操作error"); return system.getResultFail(-200, "操作error");
} }
} }
async opPayPageInfo(pobj, req) { async opPayPageInfo(pobj, orderResult, req) {
if (!pobj.actionBody.itemCode) { if (!pobj.actionBody.itemCode) {
return system.getResult(null, "itemCode param is not empty"); return system.getResult(null, "itemCode param is not empty");
} }
...@@ -271,28 +271,28 @@ class tmqueryCtl extends CtlBase { ...@@ -271,28 +271,28 @@ class tmqueryCtl extends CtlBase {
} }
return system.getResultSuccess() return system.getResultSuccess()
} }
// async putPayOrderData() { async putPayOrderData() {
// var tokenInfo = await this.getToken(pushData.actionProcess); var tokenInfo = await this.getToken(pushData.actionProcess);
// if (tokenInfo.status != 0) { if (tokenInfo.status != 0) {
// return tokenInfo; return tokenInfo;
// } }
// var param = { var param = {
// actionProcess: pushData.actionProcess, actionProcess: pushData.actionProcess,
// actionType: "updateOrderStatus", actionType: "updateOrderStatus",
// actionBody: { actionBody: {
// channelUserId: pushData.jdPin, channelUserId: pushData.jdPin,
// channelItemCode: pushData.serviceCode, channelItemCode: pushData.serviceCode,
// needNoOrderNo: pushData.orderId, needNoOrderNo: pushData.orderId,
// buyerMoblie: pushData.mobile buyerMoblie: pushData.mobile
// }, },
// isUser: "yes" isUser: "yes"
// }; };
// var reqUrl = this.channelApiUrl + "/action/tmOrder/springBoard"; var reqUrl = this.channelApiUrl + "/action/tmOrder/springBoard";
// var resultUser = await this.execClient.execPostTK(param, reqUrl, tokenInfo.data.token); var resultUser = await this.execClient.execPostTK(param, reqUrl, tokenInfo.data.token);
// if (!resultUser) { if (!resultUser) {
// return system.getResult(null, "req error"); return system.getResult(null, "req error");
// } }
// } }
async getPayPageAddr(itemCode, itemCodeList, req) { async getPayPageAddr(itemCode, itemCodeList, req) {
try { try {
...@@ -311,7 +311,16 @@ class tmqueryCtl extends CtlBase { ...@@ -311,7 +311,16 @@ class tmqueryCtl extends CtlBase {
//POST //POST
var qs = require('querystring'); var qs = require('querystring');
// var post_data = { pin: "syaify", serviceId: 580010, itemCode: "FW_GOODS-580010-1", platform: 6, orderNum: 1, articleType: 1 };//这是需要提交的数据 // var post_data = { pin: "syaify", serviceId: 580010, itemCode: "FW_GOODS-580010-1", platform: 6, orderNum: 1, articleType: 1 };//这是需要提交的数据
var post_data = { pin: req.session.userPinInfo.channelUserId, serviceId: itemCodeList[1], itemCode: itemCode, platform: 6, orderNum: 1, articleType: 1, additions: "{ 246: 0 }" };//这是需要提交的数据
var post_data = {
pin: req.session.userPinInfo.channelUserId,
serviceId: itemCodeList[1],
itemCode: itemCode,
platform: 6,
orderNum: 1,
articleType: 1,
additions: "{ \"246\": 0 }"
};//这是需要提交的数据
// var tmpContent = '{"pin":"syaify","serviceId":"581976","itemCode":"FW_GOODS-581976","platform":6,"orderNum":1,"articleType":1,"additions":{"246":0}}'; // var tmpContent = '{"pin":"syaify","serviceId":"581976","itemCode":"FW_GOODS-581976","platform":6,"orderNum":1,"articleType":1,"additions":{"246":0}}';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment