暂时禁用isSync
This commit is contained in:
@@ -698,6 +698,10 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
|
|||||||
if payload["autoEnableAt"] != nil {
|
if payload["autoEnableAt"] != nil {
|
||||||
payload["autoEnableAt"] = utils.Time2Date(utils.Str2Time(utils.Interface2String(payload["autoEnableAt"])))
|
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)
|
valid := dao.StrictMakeMapByStructObject2(payload, store, &outStore, userName)
|
||||||
if err = checkStoreDeliveryRange(utils.Interface2String(valid["deliveryRange"])); err != nil {
|
if err = checkStoreDeliveryRange(utils.Interface2String(valid["deliveryRange"])); err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
@@ -1073,6 +1077,7 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, vendorID int, vend
|
|||||||
storeMap.Status = model.StoreStatusOpened
|
storeMap.Status = model.StoreStatusOpened
|
||||||
storeMap.DeliveryType = model.StoreDeliveryTypeByStore
|
storeMap.DeliveryType = model.StoreDeliveryTypeByStore
|
||||||
storeMap.SyncStatus = 0
|
storeMap.SyncStatus = 0
|
||||||
|
storeMap.IsSync = 1 // 暂时禁用isSync
|
||||||
if vendorID != model.VendorIDJX {
|
if vendorID != model.VendorIDJX {
|
||||||
if storeMap.VendorOrgCode == "" {
|
if storeMap.VendorOrgCode == "" {
|
||||||
return nil, fmt.Errorf("必须指定平台分账号信息")
|
return nil, fmt.Errorf("必须指定平台分账号信息")
|
||||||
|
|||||||
Reference in New Issue
Block a user