1
This commit is contained in:
@@ -214,7 +214,9 @@ func (a *API) GetStoreBindTemp(storeId int64) (freightId int64, err error) {
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
if len(result.Data.StoreFreights) == 0 {
|
||||
return 0, nil
|
||||
}
|
||||
for _, v := range result.Data.StoreFreights {
|
||||
if v.StoreId == storeId {
|
||||
return v.FreightId, nil
|
||||
|
||||
Reference in New Issue
Block a user