@@ -860,8 +860,8 @@ func CreateLuaTask() {
set := map[string]interface{}{}
//MgoE.Update("task", q, s, false, false)
if state == 1 { //新任务为待处理
- if o_istate <= 2 {
- if errtype > o_stype { //历史任务是待确认、待处理、处理中状态且任务类型等级低于新建任务,任务类型替换为新任务类型
+ if o_istate < 2 {
+ if errtype > o_stype { //历史任务是待确认、待处理状态且任务类型等级低于新建任务,任务类型替换为新任务类型
o_stype = errtype
}
o_surgency = n_surgency //更新紧急度