1
This commit is contained in:
parent
1e1fad25a2
commit
f6d8e734ba
@ -96,7 +96,7 @@ namespace asg_form.Controllers
|
||||
string msg = $"[ASG管理系统]{taskinfo.Chinaname} 同学,您有新的{taskinfo.priority}星级待办任务,请您登录后台管理系统查看任务详情,并及时完成任务。--{taskinfo.CreatePerson}";
|
||||
string qqgroup = "925510646";
|
||||
wp = 0;
|
||||
var atuserqq = user.qqnumber;
|
||||
var atuserqq = user.qqnumber!=null?user.qqnumber:"123456";
|
||||
if(atuserqq == null) return Ok(new { code = 500, message = "服务器错误" });
|
||||
var message = new MessageBuilder().Add(new AtSegment(atuserqq)).Text(msg).Build();
|
||||
await sub.SaveChangesAsync();
|
||||
|
@ -96,7 +96,7 @@ namespace asg_form.Controllers
|
||||
public static long cut_value(long value)
|
||||
{
|
||||
long _value = value;
|
||||
value = value - 5;
|
||||
value = value - 1;
|
||||
if (value < 0)
|
||||
{
|
||||
throw new ArgumentException("你已经没钱啦!");
|
||||
@ -181,7 +181,7 @@ namespace asg_form.Controllers
|
||||
teamgame.referee = chinaname;
|
||||
teamgame.referee_Id = (int)(user.Id);
|
||||
await testDb.SaveChangesAsync();
|
||||
user.Integral += 5;
|
||||
user.Integral += 1;
|
||||
await userManager.UpdateAsync(user);
|
||||
message += $"\r\n{teamgame.team1_name} VS {teamgame.team2_name}";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user