|
@@ -853,8 +853,8 @@ func createTask(sp *NewSpider, taskArr *[][]map[string]interface{}, lock *sync.M
|
|
} else if comeintime_old >= util.GetTime(-30) && times_old >= 3 { //在一个月内有历史任务,且第四次建待处理任务
|
|
} else if comeintime_old >= util.GetTime(-30) && times_old >= 3 { //在一个月内有历史任务,且第四次建待处理任务
|
|
result["i_state"] = 1
|
|
result["i_state"] = 1
|
|
} else {
|
|
} else {
|
|
- result["l_complete"] = util.CompleteTime("1")
|
|
|
|
- result["l_comeintime"] = time.Now().Unix()
|
|
|
|
|
|
+ //result["l_complete"] = util.CompleteTime("1")
|
|
|
|
+ //result["l_comeintime"] = time.Now().Unix()
|
|
result["l_updatetime"] = time.Now().Unix()
|
|
result["l_updatetime"] = time.Now().Unix()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -888,7 +888,7 @@ func createTask(sp *NewSpider, taskArr *[][]map[string]interface{}, lock *sync.M
|
|
"s_descript": sp.ErrDescription,
|
|
"s_descript": sp.ErrDescription,
|
|
"i_times": 1,
|
|
"i_times": 1,
|
|
"l_comeintime": time.Now().Unix(),
|
|
"l_comeintime": time.Now().Unix(),
|
|
- "l_complete": util.CompleteTime("1"),
|
|
|
|
|
|
+ "l_complete": time.Now().AddDate(0, 0, 1),
|
|
//"s_urgency": "1",
|
|
//"s_urgency": "1",
|
|
"s_platform": sp.Platform,
|
|
"s_platform": sp.Platform,
|
|
"i_count": count,
|
|
"i_count": count,
|