完善接口:/queryHuangDao 补充token
This commit is contained in:
parent
e8c02d1403
commit
c6e957c016
@ -82,7 +82,10 @@ public class FirePointController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/queryHuangDao")
|
@GetMapping("/queryHuangDao")
|
||||||
public String queryHuangDao() {
|
public String queryHuangDao(@RequestHeader(value = "Authorization") String token) {
|
||||||
|
if (TextUtils.isEmpty(token) || (!token.equals("Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxNTcyNjI0MDI1MSIsImlzcyI6Imh0dHBzOi8vd3d3Lm1pY3Jvc2VydmljZS5jb20iLCJhdWQiOiIxNTcyNjI0MDI1MSIsImF1dGhzIjoiYXV0aF9nZW5lcmFsX3VzZXIiLCJleHAiOjE2NzUyMzQzNjl9.iE9o6KblAgQP8Q0Vx7AJOV6BVYCOJrfpU886IZiARGdIVm77dx3l1UHM-bTMUlaVyG7-9BY0sOfCD3wHfLT3MA"))) {
|
||||||
|
return outputEncapsulationObject(PromptMessageEnum.PROCESS_FAIL, "无效token", locale);
|
||||||
|
}
|
||||||
List<FirePointEntity> firePointList = firePointQueryHelper.queryFirePoint("370211", "2023-01-01 00:00:10", null, null, null);
|
List<FirePointEntity> firePointList = firePointQueryHelper.queryFirePoint("370211", "2023-01-01 00:00:10", null, null, null);
|
||||||
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, firePointList, locale);
|
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, firePointList, locale);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user