|
|
@@ -252,8 +252,7 @@ public class LoginView : MonoBehaviour
|
|
|
|
|
|
void LoginByPhone() {
|
|
|
InputField user = GetInputField(loginInPhone);
|
|
|
- Regex regex = new Regex(@"^(((13[0-9]{1})|(15[0-35-9]{1})|(17[0-9]{1})|(18[0-9]{1}))+\d{8})$");
|
|
|
- bool isMobilePhone = regex.IsMatch(user.text);
|
|
|
+ bool isMobilePhone = ValidateHelper.IsMobilePhone(user.text);
|
|
|
if (!isMobilePhone) {
|
|
|
PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("手机号格式不正确"));
|
|
|
return;
|