From 7b24cc3548a1d9153c1e6e616fc6320982b55d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=82=9C=E7=BF=94?= <2307953404@qq.com> Date: Sat, 17 Aug 2024 15:38:44 +0800 Subject: [PATCH 1/3] =?UTF-8?q?change=20two=20places=20that=20may=20exist?= =?UTF-8?q?=20bugs=EF=BC=8Cand=20a=20controller=20still=20in=20development?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asg_form/Controllers/Com.cs | 2 +- asg_form/Controllers/InviteReferee.cs | 7 +++++++ asg_form/Controllers/excel.cs | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 asg_form/Controllers/InviteReferee.cs diff --git a/asg_form/Controllers/Com.cs b/asg_form/Controllers/Com.cs index a4a1018..09981f5 100644 --- a/asg_form/Controllers/Com.cs +++ b/asg_form/Controllers/Com.cs @@ -36,7 +36,7 @@ namespace asg_form.Controllers { TestDbContext testDb = new TestDbContext(); string chinaname = user.chinaname; - var teamgame = testDb.team_Games.Where(a => a.commentary.IndexOf(chinaname) >= 0).Select(a => new { a.id, a.team1_name, a.team2_name, a.bilibiliuri, a.commentary, a.referee ,a.opentime}).ToList(); + var teamgame = testDb.team_Games.Where(a => a.commentary.IndexOf(chinaname) >= 0).Select(a => new { a.id, a.team1_name, a.team2_name, a.bilibiliuri, a.commentary, a.referee ,a.opentime,a.team1_piaoshu,a.team2_piaoshu}).OrderByDescending(a => a.opentime).ToList(); return JsonConvert.SerializeObject(teamgame); } diff --git a/asg_form/Controllers/InviteReferee.cs b/asg_form/Controllers/InviteReferee.cs new file mode 100644 index 0000000..7da09bb --- /dev/null +++ b/asg_form/Controllers/InviteReferee.cs @@ -0,0 +1,7 @@ +namespace asg_form.Controllers +{ + public class InviteReferee + { + + } +} diff --git a/asg_form/Controllers/excel.cs b/asg_form/Controllers/excel.cs index dc1f5d7..383a530 100644 --- a/asg_form/Controllers/excel.cs +++ b/asg_form/Controllers/excel.cs @@ -235,7 +235,7 @@ namespace asg_form.Controllers { using(TestDbContext ctx =new TestDbContext()) { - object data = userManager.Users.Select(a => new {a.UserName,a.chinaname,a.Email,a.officium}).Where(a => a.officium != null).GroupBy(a => a.officium).ToList(); + object data = userManager.Users.Select(a => new {a.Id,a.UserName,a.chinaname,a.Email,a.officium}).Where(a => a.officium != null).GroupBy(a => a.officium).ToList(); return data; } From 14fa6d9bce41cee32287b636346e90181f114c76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=82=9C=E7=BF=94?= <2307953404@qq.com> Date: Sat, 17 Aug 2024 16:00:05 +0800 Subject: [PATCH 2/3] a --- asg_form/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asg_form/Program.cs b/asg_form/Program.cs index 6fc3899..72af29e 100644 --- a/asg_form/Program.cs +++ b/asg_form/Program.cs @@ -21,7 +21,7 @@ using System.Text; Console.WriteLine("\n _____ _________ ________ \n / _ \\ / _____// _____/ \n / /_\\ \\ \\_____ \\/ \\ ___ \n/ | \\/ \\ \\_\\ \\\n\\____|__ /_______ /\\______ /\n \\/ \\/ \\/ \n__________ __ ___________ .___\n\\______ \\_____ ____ | | __\\_ _____/ ____ __| _/\n | | _/\\__ \\ _/ ___\\| |/ / | __)_ / \\ / __ | \n | | \\ / __ \\\\ \\___| < | \\ | \\/ /_/ | \n |______ /(____ /\\___ >__|_ \\/_______ /___| /\\____ | \n \\/ \\/ \\/ \\/ \\/ \\/ \\/ "); var builder = WebApplication.CreateBuilder(args); -builder.AddServiceDefaults(); +//builder.AddServiceDefaults(); // Add services to the container. @@ -137,7 +137,7 @@ services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) var app = builder.Build(); -app.MapDefaultEndpoints(); +//app.MapDefaultEndpoints(); app.UseCors(); // Configure the HTTP request pipeline. From c87d54e20b6a86dc6a3f3343b9ba1cc7c7447783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=82=9C=E7=BF=94?= <2307953404@qq.com> Date: Sat, 17 Aug 2024 18:31:23 +0800 Subject: [PATCH 3/3] a --- asg_form/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asg_form/Program.cs b/asg_form/Program.cs index bd430fc..5429906 100644 --- a/asg_form/Program.cs +++ b/asg_form/Program.cs @@ -22,7 +22,7 @@ using System.Text; Console.WriteLine("\n _____ _________ ________ \n / _ \\ / _____// _____/ \n / /_\\ \\ \\_____ \\/ \\ ___ \n/ | \\/ \\ \\_\\ \\\n\\____|__ /_______ /\\______ /\n \\/ \\/ \\/ \n__________ __ ___________ .___\n\\______ \\_____ ____ | | __\\_ _____/ ____ __| _/\n | | _/\\__ \\ _/ ___\\| |/ / | __)_ / \\ / __ | \n | | \\ / __ \\\\ \\___| < | \\ | \\/ /_/ | \n |______ /(____ /\\___ >__|_ \\/_______ /___| /\\____ | \n \\/ \\/ \\/ \\/ \\/ \\/ \\/ "); var builder = WebApplication.CreateBuilder(args); -builder.AddServiceDefaults(); +//builder.AddServiceDefaults(); // Add services to the container.