This commit is contained in:
王炜翔 2024-09-17 22:23:25 +08:00
parent e64bc86e52
commit 461fefa8fd

View File

@ -150,7 +150,8 @@ namespace asg_form.Controllers
{ {
task.status = "2"; task.status = "2";
user.Integral += task.money; 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) if (isPassed == 3)
{ {