...
|
...
|
@@ -421,15 +421,16 @@ class Helpers |
|
|
* 验证国际手机号是否合法
|
|
|
*
|
|
|
* @param string $areaMobile
|
|
|
* @param int $area
|
|
|
* @return boolean
|
|
|
*/
|
|
|
public static function verifyAreaMobile($areaMobile)
|
|
|
public static function verifyAreaMobile($areaMobile, $area)
|
|
|
{
|
|
|
if (empty($areaMobile)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (!strpos($areaMobile, '-')) {
|
|
|
return self::areaMobielVerify($areaMobile);
|
|
|
return self::areaMobielVerify($areaMobile, $area);
|
|
|
} else {
|
|
|
$mobileData = explode('-', $areaMobile);
|
|
|
if (count($mobileData) != 2) {
|
...
|
...
|
|