123
This commit is contained in:
parent
a238cbd1c9
commit
70f3f1755f
|
@ -3,6 +3,8 @@ package main
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
|
"github.com/Pallinder/go-randomdata"
|
||||||
|
|
||||||
"474420502.top/eson/gjson"
|
"474420502.top/eson/gjson"
|
||||||
|
|
||||||
crontab "474420502.top/eson/crontabex"
|
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"))
|
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 {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
return te
|
return te
|
||||||
|
|
Loading…
Reference in New Issue
Block a user