This commit is contained in:
richboo111
2022-11-02 11:19:56 +08:00
parent d4ea745bb9
commit 3281327036

View File

@@ -5893,6 +5893,10 @@ func GetDDScope(ctx *jxcontext.Context, storeID int, vendorStoreID string) (ware
} }
if utils.IsNil(bindWarehouse) { if utils.IsNil(bindWarehouse) {
return data, nil return data, nil
} else {
globals.SugarLogger.Debugf("")
if utils.IsNil(bindWarehouse[0][utils.Str2Int(vendorStoreID)].OutFenceIds) {
return data, errors.New(fmt.Sprintf("门店(%d) 未绑定电子围栏:%v", storeID, err))
} else { } else {
resp, err := tiktok_store.GetFence(storeMap[0].VendorOrgCode, bindWarehouse[0][utils.Str2Int(vendorStoreID)].OutFenceIds[0]) resp, err := tiktok_store.GetFence(storeMap[0].VendorOrgCode, bindWarehouse[0][utils.Str2Int(vendorStoreID)].OutFenceIds[0])
if err != nil { if err != nil {
@@ -5900,6 +5904,7 @@ func GetDDScope(ctx *jxcontext.Context, storeID int, vendorStoreID string) (ware
} }
return resp, nil return resp, nil
} }
}
} }
//获取 VendorOrgCode //获取 VendorOrgCode