From a1d08aa5ef9574ee04ddd13c9149423cd5e02c97 Mon Sep 17 00:00:00 2001 From: lianghuanjie Date: Fri, 10 Jan 2025 17:40:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=A7=E4=BD=BF=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=BA=8F=E5=88=97=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/task/get_task_list_logic.go | 2 +- internal/logic/task/verify_task_result_logic.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/logic/task/get_task_list_logic.go b/internal/logic/task/get_task_list_logic.go index 9152bc2..c611de0 100644 --- a/internal/logic/task/get_task_list_logic.go +++ b/internal/logic/task/get_task_list_logic.go @@ -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")) } // 读取任务完成状态 diff --git a/internal/logic/task/verify_task_result_logic.go b/internal/logic/task/verify_task_result_logic.go index 2e5b76c..41e8cf6 100644 --- a/internal/logic/task/verify_task_result_logic.go +++ b/internal/logic/task/verify_task_result_logic.go @@ -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)