From 5393e8a2910936ae10a4f72f142060fd8c862a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 17 Apr 2020 18:02:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E6=9F=A5=E8=AF=A2upc=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/aliupcapi/aliupcapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformapi/aliupcapi/aliupcapi.go b/platformapi/aliupcapi/aliupcapi.go index e59697a3..de4e8de0 100644 --- a/platformapi/aliupcapi/aliupcapi.go +++ b/platformapi/aliupcapi/aliupcapi.go @@ -136,7 +136,7 @@ func (a *API) GetNetUpcInfo(bar string) (getNetUpcInfo *GetNetUpcInfoResult, err getNetUpcInfo = &GetNetUpcInfoResult{} body := result["fakeData"].(string) if strings.Contains(body, "没有收录") { - return nil, err + return getNetUpcInfo, err } results := regexpUpc.FindAllStringSubmatch(body, -1) getNetUpcInfo.Upc = results[0][1]