优化
This commit is contained in:
parent
a010ec4a0b
commit
e64f24d8a3
@ -112,23 +112,6 @@ public class FirePointController {
|
|||||||
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, firePointList, locale);
|
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询今天的火点信息
|
* 查询今天的火点信息
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user