|
@@ -999,8 +999,11 @@ func (taskService *TaskService) GetTask(getTaskQuery *query.GetTaskQuery) (inter |
|
@@ -999,8 +999,11 @@ func (taskService *TaskService) GetTask(getTaskQuery *query.GetTaskQuery) (inter |
999
|
if err := transactionContext.CommitTransaction(); err != nil {
|
999
|
if err := transactionContext.CommitTransaction(); err != nil {
|
1000
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
1000
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
1001
|
}
|
1001
|
}
|
1002
|
- // TODO 返回任务素币奖励范围
|
|
|
1003
|
-
|
1002
|
+ // 返回任务素币奖励范围
|
|
|
1003
|
+ if taskDto.TaskStatus != 5 && taskDto.MinSuMoney == 0 && taskDto.MaxSuMoney == 0 {
|
|
|
1004
|
+ taskDto.MinSuMoney = 0
|
|
|
1005
|
+ taskDto.MaxSuMoney = taskDto.SuMoney
|
|
|
1006
|
+ }
|
1004
|
return taskDto, nil
|
1007
|
return taskDto, nil
|
1005
|
}
|
1008
|
}
|
1006
|
}
|
1009
|
}
|