perf: 完善签到功能

This commit is contained in:
kuaifan
2022-12-12 01:31:55 +08:00
parent e3cdb20579
commit 6937bbace8
9 changed files with 254 additions and 59 deletions

View File

@@ -1032,6 +1032,20 @@ class Base
}
}
/**
* 正则判断是否MAC地址
* @param $str
* @return bool
*/
public static function isMac($str)
{
if (preg_match("/^[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}$/", $str)) {
return true;
} else {
return false;
}
}
/**
* 判断身份证是否正确
* @param $id