This commit is contained in:
王炜翔 2024-10-26 10:23:54 +08:00
commit 4eec251481

View File

@ -98,6 +98,32 @@ namespace asg_form
}
[Command]
public string 1()
{
try
{
TestDbContext testDb = new TestDbContext();
int q = testDb.team_Games.Count();
var t = (DateTime.Now);
var a = testDb.team_Games.Where(a => string.Compare(a.opentime, t.ToString()) >= 0).Take(7);
string msg = "";
foreach (var b in a)
{
msg = $"{msg}\r\n{b.team1_name} VS {b.team2_name}\r\n时间:{b.opentime.ToString()}";
}
return msg;
}
catch
{
return "出现错误";
}
}
[Command]
public string ()
{