Authored by whb

common修改

@@ -80,9 +80,9 @@ class CommonController extends WebAction @@ -80,9 +80,9 @@ class CommonController extends WebAction
80 public function getbannerAction() 80 public function getbannerAction()
81 { 81 {
82 $url = 'http://service.api.yohobuy.com/operations/api/v4/resource/get?'; 82 $url = 'http://service.api.yohobuy.com/operations/api/v4/resource/get?';
83 - $content_code = $this->_get('content_code', '');  
84 - $client_type = $this->_get('client_type', 'web');  
85 - $callback = $this->_get('callback', ''); 83 + $content_code = $this->get('content_code', '');
  84 + $client_type = $this->get('client_type', 'web');
  85 + $callback = $this->get('callback', '');
86 $params = array( 86 $params = array(
87 'content_code' => $content_code, 87 'content_code' => $content_code,
88 'client_type' => $client_type 88 'client_type' => $client_type
@@ -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 }