...
|
...
|
@@ -19,13 +19,13 @@ class RegisterController extends WebAction |
|
|
'registerPage' => true,
|
|
|
'simpleHeader' => PassportModel::getSimpleHeader(),
|
|
|
'passport' => array(
|
|
|
'actionUrl' => SITE_MAIN.'/passport/register/mobileregister',
|
|
|
'actionUrl' => Helpers::url('/passport/register/mobileregister'),
|
|
|
'region' => RegData::getAreasData(),
|
|
|
'location' => '+86',
|
|
|
'captchaUrl' => SITE_MAIN.'/passport/images?t=1449799445',
|
|
|
'itemUrl' => 'http://www.yohobuy.com/help/?category_id=9',
|
|
|
'captchaUrl' => Helpers::url('/passport/images?t='.time()),
|
|
|
'itemUrl' => Helpers::url('/help/?category_id=9'),
|
|
|
'referUrl' => $refer,
|
|
|
'loginUrl' => SITE_MAIN.'/signin.html?refer='.$refer,
|
|
|
'loginUrl' => Helpers::url('/signin.html?refer='.$refer),
|
|
|
'coverHref' => $cover['url'],
|
|
|
'coverImg' => $cover['img'],
|
|
|
'regBtnText' => '立即注册'
|
...
|
...
|
@@ -131,9 +131,12 @@ class RegisterController extends WebAction |
|
|
break;
|
|
|
}
|
|
|
//发送代码
|
|
|
$send_code_key = md5('send_code_' .$area.'_'.$mobile);
|
|
|
$send_code_times = Cache::increment($send_code_key, 1, 0, 3600);
|
|
|
if($send_code_times > 50) {
|
|
|
$sendCodeKey = md5('send_code_' . $area . '_' . $mobile);
|
|
|
if (!Cache::get($sendCodeKey)) {
|
|
|
Cache::set($sendCodeKey, 0);
|
|
|
}
|
|
|
$sendCodeTimes = Cache::increment($sendCodeKey, 1, 0, 3600);
|
|
|
if ($sendCodeTimes > 50) {
|
|
|
$data['message'] = '发送验证码太多';
|
|
|
break;
|
|
|
}
|
...
|
...
|
|