UpdateConfig强制设置hint为"1"
This commit is contained in:
@@ -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 {
|
if err = checkConfig(model.SyncFlagModifiedMask, configType, key, value); err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
hint = "1"
|
||||||
|
|
||||||
db := dao.GetDB()
|
db := dao.GetDB()
|
||||||
dao.Begin(db)
|
dao.Begin(db)
|
||||||
@@ -365,7 +366,6 @@ func UpdateConfig(ctx *jxcontext.Context, key, configType, value string) (hint s
|
|||||||
tasksch.HandleTask(task, nil, true).Run()
|
tasksch.HandleTask(task, nil, true).Run()
|
||||||
if len(storeMapList2) < 5 {
|
if len(storeMapList2) < 5 {
|
||||||
_, err = task.GetResult(0)
|
_, err = task.GetResult(0)
|
||||||
hint = "1"
|
|
||||||
} else {
|
} else {
|
||||||
hint = task.GetID()
|
hint = task.GetID()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user