打印日志

This commit is contained in:
Guoqs
2024-06-13 14:43:01 +08:00
parent 15cf6ccc6e
commit fe87fa038c
2 changed files with 3 additions and 2 deletions

View File

@@ -130,7 +130,7 @@ public class MemberController extends BaseController {
} }
/** /**
* 支付一键登录 * 支付一键登录
* http://localhost:8080/uniapp/member/alipayLogin * http://localhost:8080/uniapp/member/alipayLogin
*/ */
@PostMapping("/alipayLogin") @PostMapping("/alipayLogin")

View File

@@ -70,7 +70,7 @@ public class UserUtils {
} }
String deptId = String.valueOf(dept.getDeptId()); String deptId = String.valueOf(dept.getDeptId());
resultVO.setDeptId(deptId); resultVO.setDeptId(deptId);
log.info("用户id:{}, 所属部门信息:{}", user.getUserId(), JSON.toJSONString(dept)); // log.info("用户id:{}, 所属部门信息:{}", user.getUserId(), JSON.toJSONString(dept));
// 登录用户角色 // 登录用户角色
Long parentId = dept.getParentId(); Long parentId = dept.getParentId();
resultVO.setParentId(String.valueOf(parentId)); resultVO.setParentId(String.valueOf(parentId));
@@ -87,6 +87,7 @@ public class UserUtils {
stationDeptIds.add(deptId); stationDeptIds.add(deptId);
resultVO.setStationDeptIds(stationDeptIds); resultVO.setStationDeptIds(stationDeptIds);
} }
log.info("用户id:{}, AuthorizedDeptVO:{}", user.getUserId(), JSON.toJSONString(resultVO));
return resultVO; return resultVO;
} }