1
This commit is contained in:
@@ -85,7 +85,7 @@ func (a *API) GetStore(storeID string) (getStoreResult *GetOneStoreRespData, err
|
||||
return nil, err
|
||||
}
|
||||
fmt.Println("chainstoreQuery 获取单个门店result==================:=", result)
|
||||
if result["code"] != "200" {
|
||||
if result["code"].(string) != "200" {
|
||||
return nil, fmt.Errorf("%s", result["msg"])
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ func (a *API) GetStore(storeID string) (getStoreResult *GetOneStoreRespData, err
|
||||
return nil, err
|
||||
}
|
||||
} else {
|
||||
err = fmt.Errorf(result["msg"].(string))
|
||||
return nil, fmt.Errorf("暂无数据")
|
||||
}
|
||||
fmt.Println("chainstoreQuery 获取单个门店==================:=", fnResult)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user