dev-tmp1
zhanglei 2026-08-14 16:30:04 +08:00
parent 5c759f12ed
commit 94c47a6e11
1 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,9 @@ public class AccountExecutor implements AccountApi {
public SingleResponse<AccountCO> add(AccountAddCmd cmd) { public SingleResponse<AccountCO> add(AccountAddCmd cmd) {
smsRemote.signValidCode(cmd.getPhone(), cmd.getVerificationCode()); smsRemote.signValidCode(cmd.getPhone(), cmd.getVerificationCode());
AccountEntity entity = new AccountEntity(); AccountEntity entity = new AccountEntity();
entity.setUserName(cmd.getUserName()); if (cmd.getUserName() == null) {
entity.setUserName(cmd.getAccount());
}
entity.setAccount(cmd.getAccount()); entity.setAccount(cmd.getAccount());
entity.setPhone(cmd.getPhone()); entity.setPhone(cmd.getPhone());
entity.setPassword(cmd.getPassword()); entity.setPassword(cmd.getPassword());