|  | @@ -4,14 +4,17 @@ package com.yonge.cooleshow.student.controller;
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.core.toolkit.StringUtils;
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.biz.dal.entity.ImGroupMember;
 | 
	
		
			
				|  |  | +import com.yonge.cooleshow.biz.dal.enums.MK;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.biz.dal.service.ImGroupMemberService;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.common.controller.BaseController;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.common.entity.HttpResponseResult;
 | 
	
		
			
				|  |  |  import com.yonge.toolset.base.exception.BizException;
 | 
	
		
			
				|  |  | +import com.yonge.toolset.utils.collection.MapUtil;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.ApiImplicitParam;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.ApiImplicitParams;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.ApiOperation;
 | 
	
		
			
				|  |  | +import org.apache.commons.collections.MapUtils;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.PostMapping;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.RequestBody;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
	
		
			
				|  | @@ -44,12 +47,19 @@ public class ImGroupMemberController extends BaseController {
 | 
	
		
			
				|  |  |      })
 | 
	
		
			
				|  |  |      @ApiOperation("获取好友详情")
 | 
	
		
			
				|  |  |      @PostMapping(value = "/getUserDetail")
 | 
	
		
			
				|  |  | -    public HttpResponseResult<ImGroupMember> getUserDetail(@RequestBody Map<String,Object> params) throws Exception {
 | 
	
		
			
				|  |  | +    public HttpResponseResult<ImGroupMember> getUserDetail(@RequestBody Map<String,Object> params) {
 | 
	
		
			
				|  |  |          if(Objects.isNull(params.get("groupId")) || Objects.isNull(params.get("userId"))){
 | 
	
		
			
				|  |  |              throw new BizException("参数校验失败");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        return succeed(imGroupMemberService.getUserDetail(Long.parseLong(params.get("userId").toString()),
 | 
	
		
			
				|  |  | -                params.get("groupId").toString()));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        String userId = MapUtils.getString(params, "userId", "");
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        String ret = userId.split(":")[0];
 | 
	
		
			
				|  |  | +        if (!ret.matches(MK.EXP_INT)) {
 | 
	
		
			
				|  |  | +            return failed("无效的用户ID");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        return succeed(imGroupMemberService.getUserDetail(userId, params.get("groupId").toString()));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 |