fix: 大使任务序列号

This commit is contained in:
lianghuanjie
2025-01-10 17:40:33 +08:00
parent 957537efc4
commit a1d08aa5ef
2 changed files with 2 additions and 2 deletions

View File

@@ -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"))
}
// 读取任务完成状态

View File

@@ -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)