freight
This commit is contained in:
@@ -5891,12 +5891,12 @@ func GetDDScope(ctx *jxcontext.Context, storeID int, vendorStoreID string) (ware
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return data, errors.New(fmt.Sprintf("获取门店(%d) 绑定fenceID失败:%v", storeID, err))
|
return data, errors.New(fmt.Sprintf("获取门店(%d) 绑定fenceID失败:%v", storeID, err))
|
||||||
}
|
}
|
||||||
if utils.IsNil(bindWarehouse) {
|
if utils.IsNil(bindWarehouse) || len(bindWarehouse) == 0 {
|
||||||
return data, nil
|
return data, nil
|
||||||
} else {
|
} else {
|
||||||
globals.SugarLogger.Debugf("")
|
globals.SugarLogger.Debugf("")
|
||||||
if utils.IsNil(bindWarehouse[0][utils.Str2Int(vendorStoreID)].OutFenceIds) {
|
if utils.IsNil(bindWarehouse[0][utils.Str2Int(vendorStoreID)].OutFenceIds) || len(bindWarehouse[0][utils.Str2Int(vendorStoreID)].OutFenceIds) == 0 {
|
||||||
return data, errors.New(fmt.Sprintf("门店(%d) 未绑定电子围栏:%v", storeID, err))
|
return data, nil
|
||||||
} 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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user