Bladeren bron

使用真实token

tags/V1.3.3^2
suqin 11 maanden geleden
bovenliggende
commit
77fac3fc59
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  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 Bestand weergeven

@@ -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));

Laden…
Annuleren
Opslaan