Authored by whb

common修改

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