add: 更新数据ext参考例子

This commit is contained in:
eson
2020-07-09 11:38:51 +08:00
parent 0a2a134511
commit a027861f5a
6 changed files with 90 additions and 34 deletions

View File

@@ -1 +1 @@
task1
openrec_task1

View File

@@ -72,7 +72,7 @@ func (or *OpenrecRanking) Execute(cxt *hunter.TaskContext) {
data.SetErrorMsg(errorMsg)
data.SetOperator(10000)
store.Save(data)
store.Insert(data)
return
}
@@ -81,7 +81,7 @@ func (or *OpenrecRanking) Execute(cxt *hunter.TaskContext) {
wf.SetQuery(querys)
data.SetErrorMsg(errorMsg)
store.Save(data)
store.Insert(data)
time.Sleep(time.Second * 2)
}