|
@@ -45,8 +45,8 @@ class BackController extends WebAction |
|
@@ -45,8 +45,8 @@ class BackController extends WebAction |
45
|
if(Helpers::verifyEmail($phoneNum)){ //验证邮箱
|
45
|
if(Helpers::verifyEmail($phoneNum)){ //验证邮箱
|
46
|
$email = $phoneNum;
|
46
|
$email = $phoneNum;
|
47
|
$data = BackData::sendCodeToEmail($email);
|
47
|
$data = BackData::sendCodeToEmail($email);
|
48
|
- $this->setSession('email', $email);
|
|
|
49
|
if($data['code'] == 200) {
|
48
|
if($data['code'] == 200) {
|
|
|
49
|
+ $this->setSession('email', $email);
|
50
|
$this->redirect('sendemail');
|
50
|
$this->redirect('sendemail');
|
51
|
}
|
51
|
}
|
52
|
else {
|
52
|
else {
|
|
@@ -55,10 +55,10 @@ class BackController extends WebAction |
|
@@ -55,10 +55,10 @@ class BackController extends WebAction |
55
|
} else if(Helpers::verifyMobile($phoneNum)) {//验证手机号
|
55
|
} else if(Helpers::verifyMobile($phoneNum)) {//验证手机号
|
56
|
$mobile = $phoneNum;
|
56
|
$mobile = $phoneNum;
|
57
|
$data = BackData::sendCodeToMobile($mobile);
|
57
|
$data = BackData::sendCodeToMobile($mobile);
|
58
|
- $this->setSession('mobile', $mobile);
|
|
|
59
|
- $this->setSession('area', $area);
|
|
|
60
|
- $this->setSession('verifyCode', $verifyCode);
|
|
|
61
|
if($data['code'] == 200) {
|
58
|
if($data['code'] == 200) {
|
|
|
59
|
+ $this->setSession('mobile', $mobile);
|
|
|
60
|
+ $this->setSession('area', $area);
|
|
|
61
|
+ $this->setSession('verifyCode', $verifyCode);
|
62
|
$this->redirect('verification');
|
62
|
$this->redirect('verification');
|
63
|
}
|
63
|
}
|
64
|
else {
|
64
|
else {
|