fix: 时区问题. sqluri导致解析错误.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user