瀏覽代碼

使用真实token

tags/V1.3.3^2
suqin 11 月之前
父節點
當前提交
77fac3fc59
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/utils/CurrentUserUtil.java

+ 2
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/utils/CurrentUserUtil.java 查看文件

@@ -48,8 +48,8 @@ public class CurrentUserUtil {
* @return
*/
public static User getUserInfo() {
// String username = SecurityUserUtils.username();
String username = "admin";
String username = SecurityUserUtils.username();
// String username = "admin";
User user = currentUserUtil.userMapper.selectOne(Wrappers.<User>lambdaQuery().eq(User::getMark, 1).eq(User::getStatus, 1).eq(User::getUsername, username));
if (null == user) {
Tenant tenant = currentUserUtil.tenantMapper.selectOne(Wrappers.<Tenant>lambdaQuery().eq(Tenant::getMark, 1).eq(Tenant::getStatus, 1).eq(Tenant::getUsername, username));

Loading…
取消
儲存