From 461fefa8fd5ec5eae31f4a525a009a640abc872d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=82=9C=E7=BF=94?= <2307953404@qq.com> Date: Tue, 17 Sep 2024 22:23:25 +0800 Subject: [PATCH] 233 --- asg_form/Controllers/AssignmentController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asg_form/Controllers/AssignmentController.cs b/asg_form/Controllers/AssignmentController.cs index 575de89..e07718d 100644 --- a/asg_form/Controllers/AssignmentController.cs +++ b/asg_form/Controllers/AssignmentController.cs @@ -150,7 +150,8 @@ namespace asg_form.Controllers { task.status = "2"; user.Integral += task.money; - user.Integral = user.Integral > 200 ? 200 : user.Integral; + var user_done = await userManager.FindByIdAsync(task.userId.ToString()); + user_done.Integral += task.money; } if (isPassed == 3) {