Commit 339b3a55 by 任晓松

update

parent 3d4ddf9a
...@@ -29,14 +29,15 @@ class utils360Sve extends AppServiceBase { ...@@ -29,14 +29,15 @@ class utils360Sve extends AppServiceBase {
if (deliveryResult.status != 0) { if (deliveryResult.status != 0) {
return deliveryResult; return deliveryResult;
} }
let sku_id = orderResult.data.orderProduct.itemCode; let sku_id = orderResult.data.orderProduct.itemCode; // 渠道方sku
let price = Number(orderResult.data.orderProduct.price) * 100; let price = Number(orderResult.data.receiptVoucher.totalSum) * 100; //总价
let quantity = orderResult.data.orderProduct.quantity; let quantity = orderResult.data.orderProduct.quantity; //数量
let amount = Number(orderResult.data.receiptVoucher.totalSum) * 100; let amount = Number(orderResult.data.receiptVoucher.totalSum) * 100; //总价
let order_id = orderResult.data.receiptVoucher.sourceOrderNo; let order_id = orderResult.data.receiptVoucher.sourceOrderNo; //订单号
let consignee = deliveryResult.data.orderContact.contactName; let consignee = deliveryResult.data.orderContact.contactName; //联系人
let mobile = deliveryResult.data.orderContact.mobile; let mobile = deliveryResult.data.orderContact.mobile; //手机号
let email = deliveryResult.data.orderContact.email; let email = deliveryResult.data.orderContact.email; //邮箱
// 加密签
let singStr = sku_id + quantity + price + amount + order_id + pobj.appInfo.uapp_secret; let singStr = sku_id + quantity + price + amount + order_id + pobj.appInfo.uapp_secret;
let sign = md5(singStr).toUpperCase(); let sign = md5(singStr).toUpperCase();
let result = { let result = {
......
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