diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 9421f148c..1d894e076 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -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 } diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index 7a63d941b..543c09ca6 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -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 }