...
|
...
|
@@ -45,8 +45,8 @@ class BackController extends WebAction |
|
|
if(Helpers::verifyEmail($phoneNum)){ //验证邮箱
|
|
|
$email = $phoneNum;
|
|
|
$data = BackData::sendCodeToEmail($email);
|
|
|
$this->setSession('email', $email);
|
|
|
if($data['code'] == 200) {
|
|
|
$this->setSession('email', $email);
|
|
|
$this->redirect('sendemail');
|
|
|
}
|
|
|
else {
|
...
|
...
|
@@ -55,10 +55,10 @@ class BackController extends WebAction |
|
|
} else if(Helpers::verifyMobile($phoneNum)) {//验证手机号
|
|
|
$mobile = $phoneNum;
|
|
|
$data = BackData::sendCodeToMobile($mobile);
|
|
|
$this->setSession('mobile', $mobile);
|
|
|
$this->setSession('area', $area);
|
|
|
$this->setSession('verifyCode', $verifyCode);
|
|
|
if($data['code'] == 200) {
|
|
|
$this->setSession('mobile', $mobile);
|
|
|
$this->setSession('area', $area);
|
|
|
$this->setSession('verifyCode', $verifyCode);
|
|
|
$this->redirect('verification');
|
|
|
}
|
|
|
else {
|
...
|
...
|
|