From dc420cdf3af114291ae60e26990fd2745cccf4fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Sat, 20 Feb 2021 16:24:47 +0800 Subject: [PATCH] aa --- business/partner/purchase/jdshop/callback.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/partner/purchase/jdshop/callback.go b/business/partner/purchase/jdshop/callback.go index 82a9d28ee..a590d6ecf 100644 --- a/business/partner/purchase/jdshop/callback.go +++ b/business/partner/purchase/jdshop/callback.go @@ -123,6 +123,9 @@ func result2Orders(msg *jdshopapi.CallBackResult) (order *model.GoodsOrder, err OrderSeq: 0, VendorOrgCode: msg.VendorOrgCode, } + if utils.Str2Float64(msg.BalanceUsed) != 0 { + order.ActualPayPrice += jxutils.StandardPrice2Int(utils.Str2Float64(msg.BalanceUsed)) + } if len(msg.ConsigneeInfo.Mobile) != 11 { order.ConsigneeMobile = Decrypt(msg.ConsigneeInfo.Mobile, msg.VendorOrgCode) } else {