From f3637a80f24ada457ad01877bf9f9a629b7e1cd6 Mon Sep 17 00:00:00 2001 From: Xiang Date: Thu, 18 Dec 2025 10:30:45 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9Atoken=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../script/jntyzx/controller/TokenFreshController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/src/main/java/com/xiang/xservice/application/script/jntyzx/controller/TokenFreshController.java b/script/src/main/java/com/xiang/xservice/application/script/jntyzx/controller/TokenFreshController.java index 54df86b..2d8e69a 100644 --- a/script/src/main/java/com/xiang/xservice/application/script/jntyzx/controller/TokenFreshController.java +++ b/script/src/main/java/com/xiang/xservice/application/script/jntyzx/controller/TokenFreshController.java @@ -1,5 +1,6 @@ package com.xiang.xservice.application.script.jntyzx.controller; +import com.xiang.xservice.application.script.jntyzx.service.DingTalkScriptVenueService; import com.xiang.xservice.application.script.jntyzx.service.IUserTokenInfoService; import com.xiang.xservice.basic.common.resp.Result; import lombok.RequiredArgsConstructor; @@ -18,6 +19,7 @@ import org.springframework.web.bind.annotation.RestController; public class TokenFreshController { private final IUserTokenInfoService userTokenInfoService; + private final DingTalkScriptVenueService dingTalkScriptVenueService; @GetMapping("/freshToken") public Result freshToken() { @@ -27,7 +29,9 @@ public class TokenFreshController { @GetMapping("/freshTokenOnline") public Result freshTokenOnline(@RequestParam("token") String token, @RequestParam("name") String name) { - userTokenInfoService.updateTokenByName(name, token); + if (userTokenInfoService.updateTokenByName(name, token)) { + dingTalkScriptVenueService.sendScriptMsg(name + "token更新成功"); + } return Result.success(); } }