diff --git a/src/main/java/com/xkrs/straw/controller/FirePointController.java b/src/main/java/com/xkrs/straw/controller/FirePointController.java index a012c71..38dc793 100644 --- a/src/main/java/com/xkrs/straw/controller/FirePointController.java +++ b/src/main/java/com/xkrs/straw/controller/FirePointController.java @@ -112,23 +112,6 @@ public class FirePointController { return outputEncapsulationObject(PromptMessageEnum.SUCCESS, firePointList, locale); } - /** - * 测试 - * - * @param token - * @return - */ - @GetMapping("/selectUserName") - public String selectUserName(@RequestHeader(value = "Authorization") String token) { - // 验证token - String tokenUserName = TokenUtil.obtainUserNameByToken(token); - SysUserEntity sysUserEntity = sysUserDao.selectByUserName(tokenUserName); - if (sysUserEntity == null) { - return outputEncapsulationObject(PromptMessageEnum.USER_LOGIN_ERROR, "您还没有注册登录,请先注册登录", locale); - } - return outputEncapsulationObject(PromptMessageEnum.SUCCESS, sysUserEntity.getUserName(), locale); - } - /** * 查询今天的火点信息 *