暂时禁用isSync

This commit is contained in:
gazebo
2020-02-04 09:55:53 +08:00
parent 69759189e8
commit a96efa96af

View File

@@ -698,6 +698,10 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
if payload["autoEnableAt"] != nil {
payload["autoEnableAt"] = utils.Time2Date(utils.Str2Time(utils.Interface2String(payload["autoEnableAt"])))
}
// 暂时不开放isSync
if payload["isSync"] != nil {
delete(payload, "isSync")
}
valid := dao.StrictMakeMapByStructObject2(payload, store, &outStore, userName)
if err = checkStoreDeliveryRange(utils.Interface2String(valid["deliveryRange"])); err != nil {
return 0, err
@@ -1073,6 +1077,7 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, vendorID int, vend
storeMap.Status = model.StoreStatusOpened
storeMap.DeliveryType = model.StoreDeliveryTypeByStore
storeMap.SyncStatus = 0
storeMap.IsSync = 1 // 暂时禁用isSync
if vendorID != model.VendorIDJX {
if storeMap.VendorOrgCode == "" {
return nil, fmt.Errorf("必须指定平台分账号信息")