diff --git a/search/search.go b/search/search.go index e9bf9c3..e88f512 100644 --- a/search/search.go +++ b/search/search.go @@ -31,6 +31,8 @@ func (te *TaskEx) Init() { // Execute 执行过程的方法 func (te *TaskEx) Execute(glocal map[string]interface{}) imitater.ITask { + log.Println(te.Workflow(true).GetQuery().Get("keyword")) + resp, err := te.Request() if err != nil { log.Println(err) diff --git a/search/search_test.go b/search/search_test.go index 70cfb71..6826395 100644 --- a/search/search_test.go +++ b/search/search_test.go @@ -30,7 +30,7 @@ func TestTaskEx_Execute(t *testing.T) { } } - if len(adDataList) != 1 { + if len(adDataList) == 1 { t.Error("adDataList != 1") t.Error(adDataList) }