正在显示
1 个修改的文件
包含
10 行增加
和
8 行删除
@@ -710,14 +710,16 @@ func (status ExpiredStatus) Update(task *Task, data map[string]interface{}) erro | @@ -710,14 +710,16 @@ func (status ExpiredStatus) Update(task *Task, data map[string]interface{}) erro | ||
710 | func (status ExpiredStatus) Release(task *Task) error { | 710 | func (status ExpiredStatus) Release(task *Task) error { |
711 | currentTime := time.Now() | 711 | currentTime := time.Now() |
712 | task.ReleaseTime = currentTime | 712 | task.ReleaseTime = currentTime |
713 | - if task.TaskType == TASK_TYPE_BID { | ||
714 | - task.ReceiveTime = currentTime | ||
715 | - task.TaskStatus = TASK_STATUS_UNDERWAY | ||
716 | - task.CurrentStatus = &UnderwayStatus{} | ||
717 | - } else { | ||
718 | - task.TaskStatus = TASK_STATUS_UNCLAIMED | ||
719 | - task.CurrentStatus = &UnClaimedStatus{} | ||
720 | - } | 713 | + task.TaskStatus = TASK_STATUS_UNCLAIMED |
714 | + task.CurrentStatus = &UnClaimedStatus{} | ||
715 | + //if task.TaskType == TASK_TYPE_BID { | ||
716 | + // task.ReceiveTime = currentTime | ||
717 | + // task.TaskStatus = TASK_STATUS_UNDERWAY | ||
718 | + // task.CurrentStatus = &UnderwayStatus{} | ||
719 | + //} else { | ||
720 | + // task.TaskStatus = TASK_STATUS_UNCLAIMED | ||
721 | + // task.CurrentStatus = &UnClaimedStatus{} | ||
722 | + //} | ||
721 | return nil | 723 | return nil |
722 | } | 724 | } |
723 | 725 |
-
请 注册 或 登录 后发表评论