feat:更新token

This commit is contained in:
xiang
2026-01-15 23:00:10 +08:00
parent d295cbd04c
commit ed59385672
2 changed files with 26 additions and 1 deletions

View File

@@ -72,7 +72,9 @@ public class UserTokenInfoServiceImpl implements IUserTokenInfoService {
return false; return false;
} }
userTokenInfoDO.setToken(token); userTokenInfoDO.setToken(token);
return userTokenInfoManage.updateById(userTokenInfoDO); boolean flag = userTokenInfoManage.updateById(userTokenInfoDO);
jtDingTalkFactory.sendMsg("用户:" + name + "token更新成功");
return flag;
} }
private boolean healthDeclaration(UserTokenInfoDO userTokenInfoDO) { private boolean healthDeclaration(UserTokenInfoDO userTokenInfoDO) {

View File

@@ -25,4 +25,27 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.3.0.RELEASE</version>
<configuration>
<classifier>exec</classifier>
<!-- 指定该Main Class为全局的唯一入口 -->
<mainClass>com.xiang.app.Application</mainClass>
<layout>ZIP</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal><!--可以把依赖的包都打包到生成的Jar包中-->
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> </project>