From fa5d97a2ea89fedc54917f67c1083b7e5bb2e08a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 9 Apr 2020 17:57:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AEexcel=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=A0=87=E5=93=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sku.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/cms/sku.go b/business/jxstore/cms/sku.go index 42397f83d..ce07c45a5 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -1812,10 +1812,10 @@ func CreateUpcSkuByExcelBin(ctx *jxcontext.Context, reader io.Reader) (hint stri unit = cell } if k == 3 { - specQuality = float32(utils.Str2Float64(cell)) + specQuality = float32(utils.Str2Float64WithDefault(cell, 0)) } if k == 4 { - price = int(utils.Str2Float64(cell)) + price = int(utils.Str2Float64WithDefault(cell, 0)) } } }