From 70848daafcdc2bc22123ae149af0f5d8059a94fb Mon Sep 17 00:00:00 2001 From: lianghuanjie Date: Mon, 13 Jan 2025 10:02:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=A7=E4=BD=BF=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=A5=96=E5=8A=B1=E9=A2=86=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/task/get_task_reward_logic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/logic/task/get_task_reward_logic.go b/internal/logic/task/get_task_reward_logic.go index 5038207..976511f 100644 --- a/internal/logic/task/get_task_reward_logic.go +++ b/internal/logic/task/get_task_reward_logic.go @@ -44,7 +44,7 @@ func (l *GetTaskRewardLogic) GetTaskReward(req *types.TaskIdPath) (*types.GetTas 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)