Authored by Rock Zhang

修改QQ与新浪微博登录的回调地址为http(登录失败的bug)

Code Review By Rock Zhang
@@ -5,7 +5,7 @@ defined('SITE_MAIN') || define('SITE_MAIN', $_SERVER['HTTP_HOST']); @@ -5,7 +5,7 @@ defined('SITE_MAIN') || define('SITE_MAIN', $_SERVER['HTTP_HOST']);
5 return array( 5 return array(
6 'appid' => '100229394', 6 'appid' => '100229394',
7 'appkey' => 'c0af9c29e0900813028c2ccb42021792', 7 'appkey' => 'c0af9c29e0900813028c2ccb42021792',
8 - 'callback' => SITE_MAIN . '/passport/login/qqcallback', 8 + 'callback' => strtr(SITE_MAIN, array('//' => 'http://')) . '/passport/login/qqcallback',
9 'scope' => 'get_user_info,add_share,upload_pic,get_idollist,get_fanslist', 9 'scope' => 'get_user_info,add_share,upload_pic,get_idollist,get_fanslist',
10 'errorReport' => true, 10 'errorReport' => true,
11 ); 11 );
@@ -5,5 +5,5 @@ defined('SITE_MAIN') || define('SITE_MAIN', $_SERVER['HTTP_HOST']); @@ -5,5 +5,5 @@ defined('SITE_MAIN') || define('SITE_MAIN', $_SERVER['HTTP_HOST']);
5 return array( 5 return array(
6 'appId' => '3739328910', 6 'appId' => '3739328910',
7 'appKey' => '9d44cded26d048e23089e5e975c93df1', 7 'appKey' => '9d44cded26d048e23089e5e975c93df1',
8 - 'appCallbackUrl' => SITE_MAIN . '/passport/login/sinacallback', 8 + 'appCallbackUrl' => strtr(SITE_MAIN, array('//' => 'http://')) . '/passport/login/sinacallback',
9 ); 9 );