From c3899c1ad13a483e94d6e05fc09c865691ef012b Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 16 Apr 2019 17:19:23 +0800 Subject: [PATCH] =?UTF-8?q?-=20showapi=E7=9A=84goodsType=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/showapi/barcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformapi/showapi/barcode.go b/platformapi/showapi/barcode.go index 051b94d8..c316eb80 100644 --- a/platformapi/showapi/barcode.go +++ b/platformapi/showapi/barcode.go @@ -82,7 +82,7 @@ func (a *API) GetProductInfoByBarCode(barCode string) (product *ProductInfo, err OriginalSpec: showapiResBody["spec"].(string), Img: utils.Interface2String(showapiResBody["img"]), Price: int(math.Round(utils.Str2Float64WithDefault(utils.Interface2String(showapiResBody["price"]), 0))), - Categories: strings.Split(showapiResBody["goodsType"].(string), ">>"), + Categories: strings.Split(utils.Interface2String(showapiResBody["goodsType"]), ">>"), ManName: showapiResBody["manuName"].(string), BrandName: showapiResBody["trademark"].(string), }