This commit is contained in:
邹宗楠
2022-10-09 13:46:45 +08:00
parent 8a34f79055
commit 665653c4ed

View File

@@ -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