diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/baidu/GetToken.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/baidu/GetToken.java index 1aa7918e..9bfb9776 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/baidu/GetToken.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/baidu/GetToken.java @@ -22,7 +22,8 @@ class GetToken { MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, ""); Request request = new Request.Builder() - .url("https://aip.baidubce.com/oauth/2.0/token?client_id=G1HsVOPNZhQTe1TyPCPz30kg&client_secret=zKrNsDNe9uEMQLpD5zXzXO4CVwT3spEH&grant_type=client_credentials") + .url("https://aip.baidubce.com/oauth/2.0/token?client_id=mcR5bjlzOvAF3YpCuebQBXTi&client_secret=drJ8JctSa61goBUS5bWyfWnz5C2OsszE&grant_type=client_credentials") +// .url("https://aip.baidubce.com/oauth/2.0/token?client_id=G1HsVOPNZhQTe1TyPCPz30kg&client_secret=zKrNsDNe9uEMQLpD5zXzXO4CVwT3spEH&grant_type=client_credentials") .method("POST", body) .addHeader("Content-Type", "application/json") .addHeader("Accept", "application/json") diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/backstage/SysAppUserController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/backstage/SysAppUserController.java index 0869fa15..6961d30f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/backstage/SysAppUserController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/backstage/SysAppUserController.java @@ -232,7 +232,7 @@ public class SysAppUserController { public AjaxResult getSOnlineTime(){ LocalDate now = LocalDate.now(); - LocalDate startDate = now.minusDays(8); + LocalDate startDate = now.minusDays(7); LocalDate endDate = now.minusDays(1); // 实际要用的返回方法 @@ -260,7 +260,7 @@ public class SysAppUserController { public AjaxResult getThOnlineTime(){ LocalDate now = LocalDate.now(); - LocalDate startDate = now.minusDays(31); + LocalDate startDate = now.minusDays(30); LocalDate endDate = now.minusDays(1); // 实际要用的返回方法, 根据起止时间决定返回内容