Commit 41c833e3 by 任晓松

update 金额校验

parent 66d4202b
...@@ -1736,6 +1736,9 @@ class OrderInfoService extends ServiceBase { ...@@ -1736,6 +1736,9 @@ class OrderInfoService extends ServiceBase {
if (item.orderStatus > 1) { if (item.orderStatus > 1) {
return system.getResultSuccess(null, "order status is pay!"); return system.getResultSuccess(null, "order status is pay!");
} }
if(item.payTotalSum > parmas.payTotalSum){
return system.getResultFail(-1,'支付金额有误!')
}
var self = this; var self = this;
await self.db.transaction(async function (t) { await self.db.transaction(async function (t) {
await self.dao.updateByWhere({ orderStatus: 2, payTime: parmas.time_end }, { where: { orderNo: parmas.orderNo } }, t); await self.dao.updateByWhere({ orderStatus: 2, payTime: parmas.time_end }, { where: { orderNo: parmas.orderNo } }, t);
......
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