1
This commit is contained in:
		
							parent
							
								
									77c4c08fd6
								
							
						
					
					
						commit
						36330579e8
					
				@ -36,7 +36,7 @@ namespace asg_form.Controllers
 | 
				
			|||||||
            {
 | 
					            {
 | 
				
			||||||
                TestDbContext testDb = new TestDbContext();
 | 
					                TestDbContext testDb = new TestDbContext();
 | 
				
			||||||
                string chinaname = user.chinaname;
 | 
					                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.judge ,a.opentime,a.team1_piaoshu,a.team2_piaoshu}).OrderByDescending(a => 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.belong,a.tag, a.bilibiliuri, a.commentary, a.referee,a.judge,a.person_type ,a.opentime,a.team1_piaoshu,a.team2_piaoshu}).OrderByDescending(a => a.opentime).ToList();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                return JsonConvert.SerializeObject(teamgame);
 | 
					                return JsonConvert.SerializeObject(teamgame);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
@ -232,7 +232,7 @@ namespace asg_form.Controllers.Teamregistration
 | 
				
			|||||||
                        if (query == null ) return Ok(new { code = 404, message = "用户1未找到" });
 | 
					                        if (query == null ) return Ok(new { code = 404, message = "用户1未找到" });
 | 
				
			||||||
                        if (user == null) return Ok(new { code = 404, message = "用户2未找到" });
 | 
					                        if (user == null) return Ok(new { code = 404, message = "用户2未找到" });
 | 
				
			||||||
                        query.status = "4";             
 | 
					                        query.status = "4";             
 | 
				
			||||||
                        _ = user.officium == null;
 | 
					                        user.officium = null;
 | 
				
			||||||
                        await testDb.SaveChangesAsync();
 | 
					                        await testDb.SaveChangesAsync();
 | 
				
			||||||
                        await userManager.UpdateAsync(user);
 | 
					                        await userManager.UpdateAsync(user);
 | 
				
			||||||
                        return Ok(new { code = 200, message = "修改成功" });
 | 
					                        return Ok(new { code = 200, message = "修改成功" });
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user