| 
					
				 | 
			
			
				@@ -15,6 +15,7 @@ import io.swagger.annotations.ApiImplicitParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiImplicitParams; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiOperation; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.apache.commons.collections.CollectionUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.apache.commons.lang3.StringUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.GetMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.PathVariable; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -23,6 +24,7 @@ import org.springframework.web.bind.annotation.RestController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.ArrayList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.Objects; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Optional; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @RequestMapping("${app-config.url.student:}/imGroup") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -57,7 +59,12 @@ public class ImGroupController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if (imGroupId.contains("S") || imGroupId.contains("I")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			imGroupId = imGroupId.substring(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		return succeed(imGroupService.get(imGroupId)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		ImGroup imGroup = imGroupService.get(imGroupId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		// 设置默认头像 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		if (Objects.nonNull(imGroup.getGroupType()) && StringUtils.isBlank(imGroup.getImg())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			imGroup.setImg(imGroup.getGroupType().getAvatar()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		return succeed(imGroup); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	@ApiOperation("查询群详情(重构版)") 
			 |