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