Commit 4f6bc45a by 庄冰

aaa

parent 64cbb3da
......@@ -843,7 +843,9 @@ class OrderService extends ServiceBase {
return system.getResultFail(-101, "orderNo参数有误");
}
var order = await this.dao.model.findOne({
where:{orderNo:obj.orderNo,app_id:obj.app.id},raw:true
where:{orderNo:obj.orderNo,app_id:obj.app.id},raw:true,
attributes:["id","orderNo","itemCode","itemName","channelItemCode","channelItemName","salesNum",
"orderPayStatus","orderPayStatusName","totalSum","created_at"]
});
if(!order || !order.totalSum){
return system.getResultFail(-102, "订单数据有误");
......@@ -877,7 +879,9 @@ class OrderService extends ServiceBase {
var result = JSON.parse(rtn.stdout);
if(result && result.status==0 && result.data && result.data.trxid ){
await this.cacheManager["ZxPayLocker"].init(result.data.trxid);
result.data.order = order;
}
return result;
}
......
......@@ -144,7 +144,20 @@
        "reqsn":"qftTM201912281609Xr7QQ7_9",
        "chnltrxid":"112094120001045091",
        "trxid":"112094120001045091",
        "trxstatus":"0000"
        "trxstatus":"0000",
"order":{
"id":456,
"orderNo":"TM201912251822SEEWXj",
"itemCode":"zzsbzc",
"itemName":"商标自助注册",
"channelItemCode":"商标自助注册",
"channelItemName":"商标自助注册",
"salesNum":1,
"orderPayStatus":"dfk",
"orderPayStatusName":"待付款",
"totalSum":"300.00",
"created_at":"2019-12-25T10:22:08.000Z"
}
    },
    "requestId":"2f48327473654bb897449c0263ca268d"
}
......
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