shish 2 vuotta sitten
vanhempi
commit
9e389741c3
1 muutettua tiedostoa jossa 0 lisäystä ja 4 poistoa
  1. 0 4
      app-ghs/controllers/ApplyController.php

+ 0 - 4
app-ghs/controllers/ApplyController.php

@@ -34,11 +34,7 @@ class ApplyController extends BaseController
         }
         $rand = rand(11111, 99999);
         $minute = 10;
-//        if (getenv('YII_ENV') == 'production') {
         sms::send($mobile . ',' . $rand . ',' . $minute, '注册验证码:{$var},{$var}分钟内有效');
-//        } else {
-//            noticeUtil::push($mobile . "的注册验证码:{$rand}", '15280215347');
-//        }
         $ptStyle = Yii::$app->params['ptStyle'];
         $cacheKey = 'register_mobile_code_' . $ptStyle . '_' . $mobile;
         Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 600, $rand]);