management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TBranchOfficeController.java
@@ -674,6 +674,7 @@ if (SinataUtil.isNotEmpty(tBranchOffice.getAccount()) && SinataUtil.isNotEmpty(tBranchOffice.getPassword())){ if(Objects.isNull(user)){ //添加User对象 user = new User(); user.setAccount(tBranchOffice.getAccount()); user.setSalt(ShiroKit.getRandomSalt(5)); user.setPassword(ShiroKit.md5(tBranchOffice.getPassword(), user.getSalt()));