远程登录配置回显
This commit is contained in:
parent
14358ef33f
commit
baeb2ed178
@ -127,12 +127,6 @@ public class UserController {
|
||||
UserBean sessionUserBean = (UserBean) SecurityUtils.getSubject().getPrincipal();
|
||||
if (sessionUserBean != null) {
|
||||
UserBean userInfo = userService.getUserInfoById(sessionUserBean.getUserId());
|
||||
AliyunOSS oss = qiwenFileConfig.getAliyun().getOss();
|
||||
String domain = oss.getDomain();
|
||||
userInfo.setViewDomain(domain);
|
||||
String bucketName = oss.getBucketName();
|
||||
String endPoint = oss.getEndpoint();
|
||||
userInfo.setDownloadDomain(bucketName + "." + endPoint);
|
||||
|
||||
restResult.setData(userInfo);
|
||||
restResult.setSuccess(true);
|
||||
@ -142,6 +136,13 @@ public class UserController {
|
||||
}
|
||||
}
|
||||
|
||||
AliyunOSS oss = qiwenFileConfig.getAliyun().getOss();
|
||||
String domain = oss.getDomain();
|
||||
restResult.getData().setViewDomain(domain);
|
||||
String bucketName = oss.getBucketName();
|
||||
String endPoint = oss.getEndpoint();
|
||||
restResult.getData().setDownloadDomain(bucketName + "." + endPoint);
|
||||
|
||||
return restResult;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user