Commit 00bf7527 by 庄冰

paytime

parent 91793771
...@@ -2611,7 +2611,10 @@ class OrderInfoService extends ServiceBase { ...@@ -2611,7 +2611,10 @@ class OrderInfoService extends ServiceBase {
ab.channelNeedNo = ab.needNo; ab.channelNeedNo = ab.needNo;
ab.channelUserId = userInfo.channel_userid; ab.channelUserId = userInfo.channel_userid;
ab.ownerUserId = userInfo.channel_userid; ab.ownerUserId = userInfo.channel_userid;
ab.payTime = ab.payTime || new Date(); ab.payTime = ab.payTime;
if(!ab.payTime){
delete ab.payTime;
}
ab.orderStatus = 2; ab.orderStatus = 2;
ab.totalSum = ab.price; ab.totalSum = ab.price;
ab.payTotalSum = ab.price; ab.payTotalSum = ab.price;
...@@ -2644,7 +2647,9 @@ class OrderInfoService extends ServiceBase { ...@@ -2644,7 +2647,9 @@ class OrderInfoService extends ServiceBase {
} }
orderInfo.refundSum = pobj.actionBody.refundSum || orderInfo.payTotalSum; orderInfo.refundSum = pobj.actionBody.refundSum || orderInfo.payTotalSum;
orderInfo.orderStatus = 16; orderInfo.orderStatus = 16;
orderInfo.refundTime = pobj.actionBody.refundTime || new Date(); if(pobj.actionBody.refundTime){
orderInfo.refundTime = pobj.actionBody.refundTime ;
}
await this.dao.update(orderInfo); await this.dao.update(orderInfo);
return system.getResultSuccess(); return system.getResultSuccess();
......
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