feat: 完成任务异步领取等级
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user