UpdateConfig强制设置hint为"1"

This commit is contained in:
gazebo
2019-10-15 16:38:39 +08:00
parent f1f54980b7
commit fcb5f4dafa

View File

@@ -308,6 +308,7 @@ func UpdateConfig(ctx *jxcontext.Context, key, configType, value string) (hint s
if err = checkConfig(model.SyncFlagModifiedMask, configType, key, value); err != nil {
return "", err
}
hint = "1"
db := dao.GetDB()
dao.Begin(db)
@@ -365,7 +366,6 @@ func UpdateConfig(ctx *jxcontext.Context, key, configType, value string) (hint s
tasksch.HandleTask(task, nil, true).Run()
if len(storeMapList2) < 5 {
_, err = task.GetResult(0)
hint = "1"
} else {
hint = task.GetID()
}