fix: 时区问题. sqluri导致解析错误.

This commit is contained in:
eson
2020-07-17 19:20:08 +08:00
parent e1040e69cd
commit 7182da2cbe
4 changed files with 24 additions and 18 deletions

View File

@@ -60,7 +60,8 @@ func (or *OpenrecRanking) Execute(cxt *hunter.TaskContext) {
resp, err := cxt.Hunt()
if err != nil {
log.Println(err)
break
time.Sleep(time.Second * 2)
continue
}
tp := cxt.Temporary()
@@ -69,7 +70,7 @@ func (or *OpenrecRanking) Execute(cxt *hunter.TaskContext) {
if len(content) <= 200 { // 末页退出
finishpoint := time.Now()
log.Println("任务结束休眠, 下次启动时间:", finishpoint.Add(time.Minute*30))
for time.Now().Sub(finishpoint) < time.Minute*30 {
for time.Now().Sub(finishpoint) < time.Minute*60 {
time.Sleep(time.Second)
if atomic.LoadInt32(&loop) > 0 {
return