Commit 58d7f144 by 宋毅

tj

parent 6a47f145
......@@ -17,9 +17,9 @@ class UtilsOrderService extends AppServiceBase {
if (!price_list) {
return system.getResult(null, "产品价格列表信息有误,10080");
}
var product_price = price_list.filter(f => f.pay_code == actionBody.pay_code);
var product_price = price_list.filter(f => f.pay_code == actionBody.payCode);
if (!product_price || product_price.length == 0) {
return system.getResult(null, "支付价格pay_code信息有误,10110");
return system.getResult(null, "支付价格payCode信息有误,10110");
}
var totalSum = Number(product_price[0].price) * Number(actionBody.quantity);
if (Number(actionBody.totalSum) < totalSum) {
......@@ -37,8 +37,8 @@ class UtilsOrderService extends AppServiceBase {
if (!actionBody.channelItemCode) {
return system.getResult(null, "产品编码有误,10010");
}
if (!actionBody.pay_code || Number(actionBody.pay_code) <= 0) {
return system.getResult(null, "支付价格pay_code有误,10030");
if (!actionBody.payCode) {
return system.getResult(null, "支付价格payCode有误,10030");
}
if (!actionBody.quantity || Number(actionBody.quantity) <= 0) {
return system.getResult(null, "订单数量有误,10050");
......
......@@ -161,7 +161,7 @@
``` javascript
{
"channelItemCode":"fzsbzc",// Y 产品的渠道编码
"pay_code": "zzsbzc-1", // Y 支付价格code
"payCode": "zzsbzc-1", // Y 支付价格code
"quantity":1,// Y 购买数量
"totalSum":699,// Y 订单总金额
"payTotalSum":699, // Y 订单付款总金额
......
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