...
|
...
|
@@ -3,6 +3,7 @@ use Action\WebAction; |
|
|
use LibModels\Web\Passport\RegData;
|
|
|
use Passport\PassportModel;
|
|
|
use Plugin\Helpers;
|
|
|
use LibModels\Wap\Passport\BackData;
|
|
|
|
|
|
class BackController extends WebAction
|
|
|
{
|
...
|
...
|
@@ -37,12 +38,15 @@ class BackController extends WebAction |
|
|
public function emailAction()
|
|
|
{
|
|
|
$phoneNum = $this->post('phoneNum','');
|
|
|
$area = $this->post('area','86');
|
|
|
$captcha = $this->post('captcha','');
|
|
|
if(Helpers::verifyEmail($phoneNum)){ //验证邮箱
|
|
|
$email = $phoneNum;
|
|
|
BackData::sendCodeToEmail($email);
|
|
|
$this->redirect('sendemail');
|
|
|
} else if(Helpers::verifyMobile($phoneNum)) {//验证手机号
|
|
|
$mobile = $phoneNum;
|
|
|
BackData::sendCodeToMobile($mobile);
|
|
|
$this->redirect('verification');
|
|
|
}
|
|
|
}
|
...
|
...
|
|