银豹绑定判断
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user