Authored by 郭成尧

'微信回退'

1 <?php 1 <?php
2 2
3 -defined('WECHAT_SITE_MAIN') || define('WECHAT_SITE_MAIN', $_SERVER['HTTP_HOST']); 3 +defined('SITE_MAIN') || define('SITE_MAIN', $_SERVER['HTTP_HOST']);
4 4
5 return array( 5 return array(
6 'appId' => 'wx3ae21dcbb82ad672', // wx75e5a7c0c88e45c2 wx3ae21dcbb82ad672 6 'appId' => 'wx3ae21dcbb82ad672', // wx75e5a7c0c88e45c2 wx3ae21dcbb82ad672
7 'appKey' => 'e78afb2321e6a19085767e1a0f0d52c1', // ce21ae4a3f93852279175a167e54509b e78afb2321e6a19085767e1a0f0d52c1 7 'appKey' => 'e78afb2321e6a19085767e1a0f0d52c1', // ce21ae4a3f93852279175a167e54509b e78afb2321e6a19085767e1a0f0d52c1
8 - 'callback' => WECHAT_SITE_MAIN . '/passport/autosign/wechatback', 8 + 'callback' => SITE_MAIN . '/passport/autosign/wechatback',
9 'scope' => 'snsapi_login' 9 'scope' => 'snsapi_login'
10 ); 10 );
@@ -2,7 +2,6 @@ @@ -2,7 +2,6 @@
2 use Yaf\Application; 2 use Yaf\Application;
3 3
4 define('SITE_MAIN', 'http://www.yohobuy.com'); // 网站主域名 4 define('SITE_MAIN', 'http://www.yohobuy.com'); // 网站主域名
5 -define('WECHAT_SITE_MAIN', 'http://yohobuy.com'); // 微信回调地址  
6 define('OLD_MAIN', 'http://www.yohobuy.com'); // 网站旧域名 5 define('OLD_MAIN', 'http://www.yohobuy.com'); // 网站旧域名
7 define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域 6 define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域
8 define('SUB_DOMAIN', '.yohobuy.com'); // 子域名后缀 7 define('SUB_DOMAIN', '.yohobuy.com'); // 子域名后缀