Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Smith-Cruise committed Mar 13, 2018
1 parent 9b94813 commit b6d906d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@ public ResponseEntity getGroup(@PathVariable("gid") int gid) {
@GetMapping("/{gid}/user/{uid}")
public ResponseEntity getMeInfo(@PathVariable("gid") int gid,
@PathVariable("uid") int uid) {
Map<String, Object> groupUser = groupUserService.getGroupUserInfo(gid, uid);
return new ResponseEntity(groupUser);
try {
return new ResponseEntity(groupUserService.getGroupUserInfo(gid, uid));
} catch (Exception e) {
return new ResponseEntity(null);
}
}

@ApiOperation("创建小组")
Expand Down

0 comments on commit b6d906d

Please sign in to comment.