TODO: 解决编码问题

This commit is contained in:
eson
2020-07-14 19:00:34 +08:00
parent ad02a5b4d9
commit 0d8b456f41
13 changed files with 308 additions and 2085 deletions

View File

@@ -29,8 +29,8 @@ func (or *OpenrecRankingTest) Execute(cxt *hunter.TaskContext) {
t.Error("rank is error. result raw is ", result.Raw)
}
if cxt.Workflow().GetQuery().Get("page") != "1" {
t.Error("workflow page error")
if cxt.Temporary().GetQuery().Get("page") != "1" {
t.Error("Temporary page error")
}
// t.Error(string(resp.Content()))
}

View File

@@ -50,7 +50,7 @@ func (or *OpenrecRanking) Execute(cxt *hunter.TaskContext) {
break
}
wf := cxt.Workflow()
wf := cxt.Temporary()
content := resp.Content()
if len(content) <= 200 {