This commit is contained in:
richboo111
2023-09-27 11:30:40 +08:00
parent 8f3d934aed
commit bfe5cbce3f

View File

@@ -6339,7 +6339,7 @@ func CreateDDWarehouse(vendorOrgCode string, vendorStoreID, storeID int64) error
var errList errlist.ErrList
bind, err := tiktok_store.GetWarehouseByStore(vendorOrgCode, vendorStoreID)
globals.SugarLogger.Debugf("CreateDDWarehouse bind=%s", utils.Format4Output(bind, false))
if err == nil && bind[utils.Int64ToStr(storeID)][0].WarehouseId > 0 {
if err == nil && bind[utils.Int64ToStr(vendorStoreID)][0].WarehouseId > 0 {
return nil
}
warehouseID, err1 := tiktok_store.CreateWarehouse(vendorOrgCode, storeID)