新建子账号 默认密码修改

This commit is contained in:
2025-09-09 12:04:37 +08:00
parent c187d25d74
commit d5a74c1ff3
2 changed files with 6 additions and 3 deletions

View File

@@ -3467,7 +3467,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
addSubAccountDTO.setCreditsUsageLimit(BigDecimal.valueOf(dto.getCredisUsageLimit()));
}
addSubAccountDTO.setUserName(dto.getEmail().substring(0, dto.getEmail().indexOf("@")));
addSubAccountDTO.setUserPassword(md5(parent.getOrganizationName().toLowerCase() + "abc"));
addSubAccountDTO.setUserPassword(md5("123456abc"));
addSubAccountDTO.setCreditsUsage(BigDecimal.ZERO);
// 添加用户
addSubAccount(addSubAccountDTO);
@@ -3502,7 +3502,10 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
@Override
public Set<String> organizationNameSearch(String type, String name) {
QueryWrapper<Account> qw = new QueryWrapper<>();
if (!StringUtil.isNullOrEmpty(name)){
qw.lambda().like(Account::getOrganizationName, name);
}
if (type.equals("School")) {
Set<Long> schoolList = new HashSet<>();
schoolList.add(7L);

View File

@@ -153,4 +153,4 @@ ollama.url=http://localhost:11434/api/chat
google.client.id=29310152396-c44dcsoksjirhn7vbo29p8u8n0sg4qps.apps.googleusercontent.com
google.client.secret=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
google.redirect.uri=https://develop.aida.com.hk/api/third/party/auth/google_callback
google.redirect.uri=https://develop.api.aida.com.hk/api/third/party/auth/google_callback