diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index c3c763fae..4fa2d39f7 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -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)