Commit ce2753a6 by doszhang

d

parent 43e1c3d1
......@@ -28,7 +28,6 @@ trait ControllerTrait
$support_fake_openid = C('AUTH_SUPPORT_FAKE_OPENID') ? '1' : '';
$helper = new OAuthHelperV3($app_id, $client_id, $client_password, $support_fake_openid);
$site_url = C('SITE_URL');
var_dump($site_url);die();
if (!$site_url) {
$sys_protocal = isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443' ? 'https://' : 'http://';
$site_url = $sys_protocal . $_SERVER['HTTP_HOST'];
......@@ -50,6 +49,7 @@ trait ControllerTrait
}
public function auth()
{
echo 123;die();
//如果是分享出去的链接,重新授权
if (!empty($_GET['from'])) {
$this->request_auth();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment