This commit is contained in:
huangsimin 2019-01-04 17:44:23 +08:00
parent a238cbd1c9
commit 70f3f1755f

View File

@ -3,6 +3,8 @@ package main
import (
"log"
"github.com/Pallinder/go-randomdata"
"474420502.top/eson/gjson"
crontab "474420502.top/eson/crontabex"
@ -33,7 +35,10 @@ func (te *TaskEx) Execute(glocal map[string]interface{}) imitater.ITask {
log.Println(te.Workflow(true).GetQuery().Get("keyword"))
resp, err := te.Request()
wf := te.Workflow(true)
wf.GetQuery().Set("keyword", randomdata.StringSample("网游", "手游", "游戏推荐", "赚钱游戏", "武侠游戏", "战略游戏"))
resp, err := wf.Execute()
if err != nil {
log.Println(err)
return te