From f76c68a87261cf2396a64c7125324c24483d4623 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期二, 09 六月 2026 09:46:32 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/wuhuyancao' into wuhuyancao
---
server/visits/admin_timer/src/main/java/com/doumee/api/WxTokenTimerController.java | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/server/visits/admin_timer/src/main/java/com/doumee/api/WxTokenTimerController.java b/server/visits/admin_timer/src/main/java/com/doumee/api/WxTokenTimerController.java
index 65fc408..5ae7500 100644
--- a/server/visits/admin_timer/src/main/java/com/doumee/api/WxTokenTimerController.java
+++ b/server/visits/admin_timer/src/main/java/com/doumee/api/WxTokenTimerController.java
@@ -13,12 +13,13 @@
import com.doumee.service.system.SystemDictDataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.mgt.DefaultSecurityManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
-import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -30,6 +31,7 @@
* @date 2023/11/30 15:33
*/
@Api(tags = "寰俊token瀹氭椂鍣ㄦ帴鍙�")
+@Slf4j
@RestController
@RequestMapping("/timer/wxtoken")
public class WxTokenTimerController extends BaseController {
@@ -44,7 +46,7 @@
@Value("${debug_model}")
private Boolean timing;
// @ApiOperation("寮�鍚畾鏃舵洿鏂板井淇″叕浼楀彿accesstoken")
-// @GetMapping("/updateWxAccessToken")
+// @PostMapping("/updateWxAccessToken")
// public ApiResponse updateWxAccessToken() {
// DefaultSecurityManager securityManager = new DefaultSecurityManager();
// SecurityUtils.setSecurityManager(securityManager);
@@ -64,8 +66,9 @@
// return ApiResponse.success("寮�鍚畾鏃舵洿鏂板井淇″叕浼楀彿accesstoken鎴愬姛");
// }
@ApiOperation("寮�鍚畾鏃舵洿鏂板井淇″叕浼楀彿accesstoken")
- @GetMapping("/updateWxAccessTokenOrigin")
+ @PostMapping("/updateWxAccessTokenOrigin")
public ApiResponse updateWxAccessTokenOrigin() {
+ log.info("瀹氭椂浠诲姟鎵ц寮�濮嬶細updateWxAccessTokenOrigin-鏇存柊寰俊token");
DefaultSecurityManager securityManager = new DefaultSecurityManager();
SecurityUtils.setSecurityManager(securityManager);
--
Gitblit v1.9.3