|
|
@@ -58,8 +58,8 @@ public class AccountRegistryServiceImpl implements AccountRegistryService {
|
|
|
return Result.fail("短信验证码不正确, 请重新获取");
|
|
|
}
|
|
|
|
|
|
- String email = "";
|
|
|
- String mobile = "";
|
|
|
+ String email = null;
|
|
|
+ String mobile = null;
|
|
|
if (StringRegexp.matchEmail(principal)) {
|
|
|
email = principal;
|
|
|
} else if (StringRegexp.matchMobile(principal)) {
|
|
|
@@ -96,8 +96,8 @@ public class AccountRegistryServiceImpl implements AccountRegistryService {
|
|
|
|
|
|
@Override
|
|
|
public AccountDetail createAccount(String principal, String password) {
|
|
|
- String email = "";
|
|
|
- String mobile = "";
|
|
|
+ String email = null;
|
|
|
+ String mobile = null;
|
|
|
if (StringRegexp.matchEmail(principal)) {
|
|
|
email = principal;
|
|
|
} else if (StringRegexp.matchMobile(principal)) {
|