时间校验
This commit is contained in:
@@ -617,8 +617,8 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
|
||||
if err = dao.GetEntity(db, store); err != nil {
|
||||
return 0, err
|
||||
}
|
||||
outStore := &model.Store{}
|
||||
valid := dao.StrictMakeMapByStructObject2(payload, store, outStore, userName)
|
||||
var outStore *model.Store
|
||||
valid := dao.StrictMakeMapByStructObject2(payload, store, &outStore, userName)
|
||||
if err = checkStoreDeliveryRange(utils.Interface2String(valid["deliveryRange"])); err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
@@ -670,12 +670,6 @@ func (v *VendorSync) ChangeStoreSkuSaleStatus(ctx *jxcontext.Context, storeID in
|
||||
}
|
||||
vendorIDs := partner.GetPurchasePlatformVendorIDs()
|
||||
dao.UpdateStoreSkuBindSyncStatus(db, vendorIDs, storeID)
|
||||
if isAsync == false {
|
||||
isAsync = true
|
||||
}
|
||||
if isContinueWhenError == false {
|
||||
isContinueWhenError = true
|
||||
}
|
||||
v.SyncStoresSkus(ctx, db, vendorIDs, storeIDs, skuIDs, false, isAsync, isContinueWhenError)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user