解决任务状态任务异常

This commit is contained in:
2025-07-11 09:21:01 +08:00
parent e991da6dca
commit 1fd809ebfe

View File

@ -560,7 +560,7 @@ func (s *sTask) GetTaskList(ctx context.Context, in *model.GetTaskListV2In) (out
updateData.IssueQuantity = quantity updateData.IssueQuantity = quantity
} }
} }
if _, err := dao.UserTaskRewards.Ctx(ctx).Data(updateData).Update(); err != nil { if _, err := dao.UserTaskRewards.Ctx(ctx).Data(updateData).Where(do.UserTaskRewards{Id: record["id"].Int64()}).Update(); err != nil {
return ecode.Fail.Sub("修改用户任务奖励失败") return ecode.Fail.Sub("修改用户任务奖励失败")
} }
} }