diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index b796cc7e3..e27766a49 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -2888,6 +2888,7 @@ func checkAppIDAndAppKey(db *dao.DaoDB, storeMap *model.StoreMap, storeID int) ( if appKey == "" { return fmt.Errorf("绑定银豹平台必须输入appKey!") } + api.YinBaoAPI = yinbaoapi.New(appKey, appID) _, err = api.YinBaoAPI.QueryProductByBarcode("") if err != nil { if errCode, ok := err.(*utils.ErrorWithCode); ok {