bug
parent
5c759f12ed
commit
94c47a6e11
|
|
@ -63,7 +63,9 @@ public class AccountExecutor implements AccountApi {
|
|||
public SingleResponse<AccountCO> add(AccountAddCmd cmd) {
|
||||
smsRemote.signValidCode(cmd.getPhone(), cmd.getVerificationCode());
|
||||
AccountEntity entity = new AccountEntity();
|
||||
entity.setUserName(cmd.getUserName());
|
||||
if (cmd.getUserName() == null) {
|
||||
entity.setUserName(cmd.getAccount());
|
||||
}
|
||||
entity.setAccount(cmd.getAccount());
|
||||
entity.setPhone(cmd.getPhone());
|
||||
entity.setPassword(cmd.getPassword());
|
||||
|
|
|
|||
Loading…
Reference in New Issue