This commit is contained in:
huangsimin 2019-01-04 17:50:40 +08:00
parent 6f49911feb
commit 861cd53490

View File

@ -33,10 +33,10 @@ func (te *TaskEx) Init() {
// Execute 执行过程的方法
func (te *TaskEx) Execute(glocal map[string]interface{}) imitater.ITask {
log.Println(te.Workflow(true).GetQuery().Get("keyword"))
wf := te.Workflow(true)
wf.GetQuery().Set("keyword", randomdata.StringSample("手游", "游戏推荐", "赚钱游戏", "武侠游戏", "战略游戏"))
kw := randomdata.StringSample("手游", "游戏推荐", "赚钱游戏", "武侠游戏", "战略游戏")
wf.GetQuery().Set("keyword", kw)
log.Println(kw)
resp, err := wf.Execute()
if err != nil {