mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-04-05 15:57:32 +00:00
Merge pull request #50 from winkeylucky/winkey-0502
解决登录异常_和公共资源例外 0502
This commit is contained in:
@@ -63,6 +63,24 @@ public class ChatConfigController extends BaseController {
|
||||
return R.ok(configService.getConfigValue("sys",configKey));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询版权信息
|
||||
*
|
||||
*/
|
||||
@GetMapping(value = "/configKey/copyright")
|
||||
public R<String> getConfigKeyCopyright() {
|
||||
return R.ok(configService.getConfigValue("sys","copyright"));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询logoImage
|
||||
*
|
||||
*/
|
||||
@GetMapping(value = "/configKey/logoImage")
|
||||
public R<String> getConfigKeyLogoImage() {
|
||||
return R.ok(configService.getConfigValue("sys","logoImage"));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询系统参数
|
||||
*
|
||||
|
||||
@@ -31,7 +31,6 @@ public class SysNoticeController extends BaseController {
|
||||
/**
|
||||
* 获取公告列表
|
||||
*/
|
||||
@SaCheckPermission("system:notice:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<SysNoticeVo> list(SysNoticeBo notice, PageQuery pageQuery) {
|
||||
//公告类型(1通知 2公告)
|
||||
|
||||
@@ -228,7 +228,9 @@ public class SysLoginService {
|
||||
TenantHelper.clearDynamic();
|
||||
}
|
||||
StpUtil.logout();
|
||||
recordLogininfor(loginUser.getTenantId(), loginUser.getUsername(), Constants.LOGOUT, MessageUtils.message("user.logout.success"));
|
||||
if (loginUser !=null) {
|
||||
recordLogininfor(loginUser.getTenantId(), loginUser.getUsername(), Constants.LOGOUT, MessageUtils.message("user.logout.success"));
|
||||
}
|
||||
} catch (NotLoginException ignored) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user