@@ -29,7 +29,7 @@ class ApplyController extends BaseController
{
$get = Yii::$app->request->get();
$mobile = $get['mobile'] ?? '';
- if (stringUtil::isMobile($mobile) == false) {
+ if (!stringUtil::isMobile($mobile)) {
util::fail('请输入正确手机号');
}
$rand = rand(11111, 99999);
@@ -70,9 +70,6 @@ class ApplyController extends BaseController
$ptStyle = Yii::$app->params['ptStyle'];
$cacheKey = 'register_mobile_code_' . $ptStyle . '_' . $mobile;
Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 600, $rand]);
-
- noticeUtil::push("注册验证码:{$rand},{$mobile} 申请注册", '15280215347');
util::complete();