|
@@ -3,6 +3,7 @@ use Action\WebAction; |
|
@@ -3,6 +3,7 @@ use Action\WebAction; |
3
|
use LibModels\Web\Passport\RegData;
|
3
|
use LibModels\Web\Passport\RegData;
|
4
|
use Passport\PassportModel;
|
4
|
use Passport\PassportModel;
|
5
|
use Plugin\Helpers;
|
5
|
use Plugin\Helpers;
|
|
|
6
|
+use LibModels\Wap\Passport\BackData;
|
6
|
|
7
|
|
7
|
class BackController extends WebAction
|
8
|
class BackController extends WebAction
|
8
|
{
|
9
|
{
|
|
@@ -37,12 +38,15 @@ class BackController extends WebAction |
|
@@ -37,12 +38,15 @@ class BackController extends WebAction |
37
|
public function emailAction()
|
38
|
public function emailAction()
|
38
|
{
|
39
|
{
|
39
|
$phoneNum = $this->post('phoneNum','');
|
40
|
$phoneNum = $this->post('phoneNum','');
|
|
|
41
|
+ $area = $this->post('area','86');
|
40
|
$captcha = $this->post('captcha','');
|
42
|
$captcha = $this->post('captcha','');
|
41
|
if(Helpers::verifyEmail($phoneNum)){ //验证邮箱
|
43
|
if(Helpers::verifyEmail($phoneNum)){ //验证邮箱
|
42
|
$email = $phoneNum;
|
44
|
$email = $phoneNum;
|
|
|
45
|
+ BackData::sendCodeToEmail($email);
|
43
|
$this->redirect('sendemail');
|
46
|
$this->redirect('sendemail');
|
44
|
} else if(Helpers::verifyMobile($phoneNum)) {//验证手机号
|
47
|
} else if(Helpers::verifyMobile($phoneNum)) {//验证手机号
|
45
|
$mobile = $phoneNum;
|
48
|
$mobile = $phoneNum;
|
|
|
49
|
+ BackData::sendCodeToMobile($mobile);
|
46
|
$this->redirect('verification');
|
50
|
$this->redirect('verification');
|
47
|
}
|
51
|
}
|
48
|
}
|
52
|
}
|