提交优化

This commit is contained in:
andy committed 2026-01-27 18:03:26 +08:00
1 parent 767d2b8401
commit af9d488a4a
7 files changed
+53 -41

No files matched your search

@@ -72,7 +72,7 @@ public class DealerServiceImpl implements DealerService {
// 设置密码:如果提供了密码则使用提供的密码,否则使用默认密码
String password = dealerDTO.getPassword();
if (password == null || password.trim().isEmpty()) {
password = "123456"; // 默认密码
password = "a123456"; // 默认密码
}
user.setPassword(passwordEncoder.encode(password));
user.setCreatedAt(LocalDateTime.now());