...
|
...
|
@@ -45,7 +45,7 @@ class BackController extends WebAction |
|
|
if(Helpers::verifyEmail($phoneNum)){ //验证邮箱
|
|
|
$email = $phoneNum;
|
|
|
$data = BackData::sendCodeToEmail($email);
|
|
|
$this->setSession('phoneNum', $phoneNum);
|
|
|
$this->setSession('email', $email);
|
|
|
if($data['code'] == 200) {
|
|
|
$this->redirect('sendemail');
|
|
|
}
|
...
|
...
|
@@ -55,7 +55,7 @@ class BackController extends WebAction |
|
|
} else if(Helpers::verifyMobile($phoneNum)) {//验证手机号
|
|
|
$mobile = $phoneNum;
|
|
|
$data = BackData::sendCodeToMobile($mobile);
|
|
|
$this->setSession('phoneNum', $phoneNum);
|
|
|
$this->setSession('mobile', $mobile);
|
|
|
$this->setSession('area', $area);
|
|
|
$this->setSession('verifyCode', $verifyCode);
|
|
|
if($data['code'] == 200) {
|
...
|
...
|
@@ -71,8 +71,8 @@ class BackController extends WebAction |
|
|
* 发送邮件页面
|
|
|
*/
|
|
|
public function sendemailAction() {
|
|
|
$phoneNum = $this->getSession('phoneNum');
|
|
|
if(empty($phoneNum)) {
|
|
|
$email = $this->getSession('email');
|
|
|
if(empty($email)) {
|
|
|
$this->redirect('index');
|
|
|
}
|
|
|
$banner = PassportModel::getLeftBanner(PassportModel::BACK_LFFT_BANNER_CODE);
|
...
|
...
|
@@ -158,10 +158,10 @@ class BackController extends WebAction |
|
|
* 手机验证页面
|
|
|
*/
|
|
|
public function verificationAction() {
|
|
|
$phoneNum = $this->getSession('phoneNum');
|
|
|
$mobile = $this->getSession('mobile');
|
|
|
$area = $this->getSession('area');
|
|
|
$verifyCode = $this->getSession('verifyCode');
|
|
|
if(empty($phoneNum)) {
|
|
|
if(empty($mobile)) {
|
|
|
$this->redirect('index');
|
|
|
}
|
|
|
$banner = PassportModel::getLeftBanner(PassportModel::BACK_LFFT_BANNER_CODE);
|
...
|
...
|
@@ -171,9 +171,9 @@ class BackController extends WebAction |
|
|
'verification' => array(
|
|
|
'coverHref' => $banner['url'],
|
|
|
'coverImg' => $banner['img'],
|
|
|
'phoneNum' => $phoneNum,
|
|
|
'mobile' => $mobile,
|
|
|
'area' => $area,
|
|
|
'captcha'=> $captcha,
|
|
|
'verifyCode'=> $verifyCode,
|
|
|
'countrys' => array()
|
|
|
)
|
|
|
);
|
...
|
...
|
@@ -185,11 +185,11 @@ class BackController extends WebAction |
|
|
*/
|
|
|
public function backmobileAction()
|
|
|
{
|
|
|
$mobile = $this->post('mobile');//phoneNum
|
|
|
$mobile = $this->post('mobile');
|
|
|
$area = $this->post('area');
|
|
|
//$captcha = $this->post('captcha');
|
|
|
$code = $this->post('captcha');//code
|
|
|
if($this->getSession('phoneNum') == $mobile && $this->getSession('area') == $area)
|
|
|
$verifyCode = $this->post('verifyCode');
|
|
|
$code = $this->post('code');//code
|
|
|
if($this->getSession('mobile') == $mobile && $this->getSession('area') == $area)
|
|
|
{
|
|
|
$result = BackData::validateMobileCode($mobile, $code, $area);
|
|
|
if($result['code'] == 200) {
|
...
|
...
|
|