Commit 3a1804b1 by 宋毅

tj

parent 9bdaff85
...@@ -244,11 +244,16 @@ class tmqueryCtl extends CtlBase { ...@@ -244,11 +244,16 @@ class tmqueryCtl extends CtlBase {
async opPayPageInfo(pobj) { async opPayPageInfo(pobj) {
if (pobj.actionProcess == "jd") { if (pobj.actionProcess == "jd") {
var tmpResult = await this.opJdOrder(); var tmpResult = await this.opJdOrder();
console.log(tmpResult,"tmpResult...........opPayPageInfo........$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$...."); // { result: true,
// data:
// '{"success":true,"code":null,"msg":null,"data":{"orderNumber":"6058867","erpOrderId":"523198741458590844",
// "returnUrl":"https://buy.jdcloud.com/pay?orderId=523198741458590844","saasCheckUrl":null}}' }
console.log(tmpResult, "tmpResult...........opPayPageInfo........$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$....");
if (tmpResult && tmpResult.result && tmpResult.result == true) { if (tmpResult && tmpResult.result && tmpResult.result == true) {
var payDataResult = JSON.parse(tmpResult.data); var payDataResult = JSON.parse(tmpResult.data);
if (payDataResult && payDataResult.success && payDataResult.success == true) { if (payDataResult && payDataResult.success && payDataResult.success == true) {
system.getResultSuccess({ payUrl: tmpResult.data.returnUrl }); system.getResultSuccess({ payUrl: payDataResult.data.returnUrl });
}//成功 }//成功
} }
return system.getResult(null, "pay page is error"); return system.getResult(null, "pay page is error");
......
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