瀏覽代碼

Merge branch 'master' into notice-260707

shish 3 周之前
父節點
當前提交
51b6a65ac1
共有 2 個文件被更改,包括 1 次插入4 次删除
  1. 1 1
      app-ghs/controllers/ApplyController.php
  2. 0 3
      app-hd/controllers/ApplyController.php

+ 1 - 1
app-ghs/controllers/ApplyController.php

@@ -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);

+ 0 - 3
app-hd/controllers/ApplyController.php

@@ -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();
     }