Thirdlogin.php 1.01 KB
<?php

use Action\WebAction;
use Passport\PassportModel;
use LibModels\Wap\Passport\RegData;

class ThirdloginController extends WebAction
{

    /**
     * 第三方联合登录手机绑定流程页
     */
    public function indexAction()
    {
        $this->setTitle('联合登录补全信息');
//        $nickname = $this->get('nickname');
        $openId = trim($this->get('openId'));
        $sourceType = trim($this->get('sourceType'));

        //登录后跳转页面
        $refer = $this->getCookie('refer');
        if (empty($refer)) {
            $refer = SITE_MAIN;
        }
        else {
            $refer = rawurldecode($refer);
        }

        $simpleHeader = PassportModel::getSimpleHeader();

        //整合
        $data = array(
            'thirdLogin' => true,
            'simpleHeader' => $simpleHeader,
            'openId' => $openId,
            'sourceType' => $sourceType,
            'region' => RegData::getAreasData(),
        );

        $this->_view->display('index', $data);
    }

}