<?php

/**
 *第三方api处理
 */

namespace app\api\controller;


/**

 * 第三方登录控制器
 */
class Api extends MobileMall
{
    /* QQ登录 */
    public function oa_qq()
    {
        include(PLUGINS_PATH . '/login/qq_h5/oauth/qq_login.php');
    }
    /* QQ登录回调 */
    public function oa_qq_callback()
    {
        include PLUGINS_PATH . '/login/qq_h5/oauth/qq_callback.php';
    }

    /**
     *新浪微博登录
     */
    public function oa_sina()
    {
        if (input('param.step') == 'callback') {
            include PLUGINS_PATH . '/login/sina_h5/callback.php';
        } else {
            include PLUGINS_PATH . '/login/sina_h5/index.php';
        }
    }
}
