From 638328a0e6d656cd86c188a750a59dac45519e5f Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 19 Feb 2020 10:04:35 +0800 Subject: [PATCH] =?UTF-8?q?SkuID=E8=B6=85=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/partner/purchase/jd/financial.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/business/partner/purchase/jd/financial.go b/business/partner/purchase/jd/financial.go index 080ea5bd6..30abad981 100644 --- a/business/partner/purchase/jd/financial.go +++ b/business/partner/purchase/jd/financial.go @@ -1,6 +1,8 @@ package jd import ( + "math" + "git.rosy.net.cn/baseapi/platformapi/jdapi" "git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/jx-callback/business/model" @@ -97,7 +99,9 @@ func (p *PurchaseHandler) OrderDetail2Financial(a *jdapi.API, orderData map[stri // orderFinancial.JxSubsidyMoney += orderSkuFinancial.JxSubsidyMoneyForSku orderFinancial.SalePriceMoney += orderSkuFinancial.SalePrice * int64(orderSkuFinancial.Count) orderSkuFinancial.SkuID = int(utils.Str2Int64WithDefault(utils.Interface2String(xMap["skuIdIsv"]), 0)) - + if orderSkuFinancial.SkuID > math.MaxInt32 { + orderSkuFinancial.SkuID = 0 + } orderFinancial.Skus = append(orderFinancial.Skus, orderSkuFinancial) } }