feat: 完成任务异步领取等级

This commit is contained in:
Blizzard
2026-02-12 15:41:38 +08:00
parent 0405968597
commit bbc8e127f7
3 changed files with 44 additions and 7 deletions
+2 -1
View File
@@ -150,7 +150,8 @@ func (a *MyPlantApi) CompleteTask(c *gin.Context) {
response.FailWithMsg("请求参数错误", c)
return
}
err = plantService.CompleteTask(req)
userId := auth.GetUserId(c)
err = plantService.CompleteTask(req, userId)
if err != nil {
global.Logger.Error("完成任务失败", zap.Error(err))
response.FailWithMsg("完成任务失败", c)