Commit 43e1c3d1 by doszhang

d

parent e915ab2e
......@@ -28,6 +28,7 @@ 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'];
......
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