Commit c34817ab authored by jianglx's avatar jianglx

修改测试环境ShareInstall key值;修改手机号码校验问题

parent 9494dcda
<resources> <resources>
<string name="app_name">滴房车(测试)</string> <string name="app_name">滴房车(测试)</string>
<string name="share_install_key">FFBK2KEE6RK6EF</string> <string name="share_install_key">7BBK22KKFH26KE</string>
<string name="share_install_scheme">dkkg9859</string> <string name="share_install_scheme">epad4069</string>
</resources> </resources>
...@@ -13,9 +13,7 @@ public class StringUtils { ...@@ -13,9 +13,7 @@ public class StringUtils {
if (TextUtils.isEmpty(str)) { if (TextUtils.isEmpty(str)) {
return false; return false;
} }
String regExp = "^1(3[0-9]|4[57]|5[0-35-9]|8[0-9]|70)\\d{8}$";
Pattern p = Pattern.compile(regExp); return str.length() == 11 && str.startsWith("1");
Matcher m = p.matcher(str);
return m.matches();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment