fix: 大使任务序列号
This commit is contained in:
@@ -76,7 +76,7 @@ func (l *GetTaskListLogic) GetTaskList(uid int, req *types.GetTaskListReq) (*typ
|
||||
for _, t := range tasks {
|
||||
// 任务序列号
|
||||
taskSeq := 0
|
||||
if t.Type == model.TASKTYPE_DAILY_PAY {
|
||||
if t.Type == model.TASKTYPE_DAILY_PAY || t.Type == model.TASKTYPE_AMBASSADOR_TASK {
|
||||
taskSeq = cast.ToInt(time.Now().Format("20060102"))
|
||||
}
|
||||
// 读取任务完成状态
|
||||
|
||||
@@ -40,7 +40,7 @@ func (l *VerifyTaskResultLogic) VerifyTaskResult(req *types.VerifyTaskResultReq)
|
||||
return nil, errs.New(errs.ErrDatabaseOperate, err)
|
||||
}
|
||||
var taskSeq int
|
||||
if task.Type == model.TASKTYPE_DAILY_PAY {
|
||||
if task.Type == model.TASKTYPE_DAILY_PAY || task.Type == model.TASKTYPE_AMBASSADOR_TASK {
|
||||
taskSeq = cast.ToInt(time.Now().Format("20060102"))
|
||||
}
|
||||
tp, err := l.svcCtx.TaskProgressModel.FindOneByUidTaskIdTaskSeq(l.ctx, uid, task.Id, taskSeq)
|
||||
|
||||
Reference in New Issue
Block a user