Commit dc701be7 by 宋毅

tj

parent 6e04aa48
...@@ -306,16 +306,8 @@ class tmqueryCtl extends CtlBase { ...@@ -306,16 +306,8 @@ class tmqueryCtl extends CtlBase {
return system.getResultFail(-200, "操作error"); return system.getResultFail(-200, "操作error");
} }
} }
var reqobj = {
"actionProcess": pobj.actionProcess || "",
"actionType": pobj.actionType || "",
"sign": pobj.sign || "",
"isUser": pobj.isUser || "yes",//是否需要验证用户,no否,yes是
"isDecryptUser": pobj.isDecryptUser || "no",//是否解密用户Id,no否,yes是
"actionBody": pobj.actionBody || null
};
async opPayPageInfo(pobj, orderResult, 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");
} }
...@@ -343,8 +335,8 @@ async opPayPageInfo(pobj, orderResult, req) { ...@@ -343,8 +335,8 @@ async opPayPageInfo(pobj, orderResult, req) {
return system.getResult(null, "pay page is error"); return system.getResult(null, "pay page is error");
} }
return system.getResultSuccess(); return system.getResultSuccess();
} }
async putPayOrderData(pobj, orderResult, payDataResult, req) { async putPayOrderData(pobj, orderResult, payDataResult, req) {
var tokenInfo = await this.getToken(pobj.actionProcess); var tokenInfo = await this.getToken(pobj.actionProcess);
if (tokenInfo.status != 0) { if (tokenInfo.status != 0) {
return tokenInfo; return tokenInfo;
...@@ -365,8 +357,8 @@ async putPayOrderData(pobj, orderResult, payDataResult, req) { ...@@ -365,8 +357,8 @@ async putPayOrderData(pobj, orderResult, payDataResult, req) {
var reqUrl = this.channelApiUrl + "/action/tmOrder/springBoard"; var reqUrl = this.channelApiUrl + "/action/tmOrder/springBoard";
var tmp = await this.execClient.execPostTK(param, reqUrl, tokenInfo.data.token); var tmp = await this.execClient.execPostTK(param, reqUrl, tokenInfo.data.token);
console.log(tmp, "putPayOrderData########################################333333..........tmptmptmptmp................."); console.log(tmp, "putPayOrderData########################################333333..........tmptmptmptmp.................");
} }
async getPayPageAddr(itemCode, itemCodeList, req) { async getPayPageAddr(itemCode, itemCodeList, req) {
try { try {
const { Signer, Context } = require('../jd-gateway-sdk'); const { Signer, Context } = require('../jd-gateway-sdk');
...@@ -475,8 +467,8 @@ async getPayPageAddr(itemCode, itemCodeList, req) { ...@@ -475,8 +467,8 @@ async getPayPageAddr(itemCode, itemCodeList, req) {
console.log(errorMsg, "--jd>>>>>>>errorMsg..............................>>>>>>"); console.log(errorMsg, "--jd>>>>>>>errorMsg..............................>>>>>>");
return { success: false, code: -200, msg: errorMsg.stack }; return { success: false, code: -200, msg: errorMsg.stack };
} }
} }
async pushPayOrder(pushData, req) {//处理京东推送的订单信息 async pushPayOrder(pushData, req) {//处理京东推送的订单信息
try { try {
var signResult = await this.createSign(pushData, "6B876EB84731E166D76E1F73AD5764BA", true); var signResult = await this.createSign(pushData, "6B876EB84731E166D76E1F73AD5764BA", true);
if (signResult.status != 0) { if (signResult.status != 0) {
...@@ -529,7 +521,7 @@ async pushPayOrder(pushData, req) {//处理京东推送的订单信息 ...@@ -529,7 +521,7 @@ async pushPayOrder(pushData, req) {//处理京东推送的订单信息
console.log(error.stack, "操作error..................."); console.log(error.stack, "操作error...................");
return system.getResultFail(-200, "操作error"); return system.getResultFail(-200, "操作error");
} }
} }
} }
module.exports = tmqueryCtl; module.exports = tmqueryCtl;
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