first commit
This commit is contained in:
18
common/MobileHelper.php
Normal file
18
common/MobileHelper.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace app\common;
|
||||
|
||||
class MobileHelper
|
||||
{
|
||||
public static function isValidChinaMobile($remarkDict): bool
|
||||
{
|
||||
if (is_string($remarkDict) && $remarkDict) {
|
||||
$val = json_decode($remarkDict, true);
|
||||
if (isset($val['是否为隐私号']) && $val['是否为隐私号'] == '是') {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user