From 2ea4703bd928af10b1e283986d8760cbffb5a38f Mon Sep 17 00:00:00 2001 From: haotian <2421912570@qq.com> Date: Tue, 29 Apr 2025 11:40:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9--=E4=BF=AE=E6=94=B9=E5=AE=9E?= =?UTF-8?q?=E5=90=8D=E8=AE=A4=E8=AF=81=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/web/controller/app/baidu/GetToken.java | 3 ++- .../ruoyi/web/controller/backstage/SysAppUserController.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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); // 实际要用的返回方法, 根据起止时间决定返回内容