|
@@ -289,12 +289,14 @@ class session_helper
|
|
|
{
|
|
|
if(array_key_exists('wx_author',$_SESSION))
|
|
|
{
|
|
|
+ Log::record("need_wechat_author 1",Log::DEBUG);
|
|
|
if(array_key_exists('handled',$_SESSION['wx_author']))
|
|
|
{
|
|
|
$user_info = $_SESSION['wx_author']['user_info'];
|
|
|
$loginer = new \login\unionid_log($user_info['unionid']);
|
|
|
|
|
|
if(self::logined()) {
|
|
|
+ Log::record("need_wechat_author 1 1",Log::DEBUG);
|
|
|
$loginer->bind($user_info);
|
|
|
$loginer->login();
|
|
|
unset($_SESSION['wx_author']);
|
|
@@ -303,12 +305,16 @@ class session_helper
|
|
|
{
|
|
|
if($loginer->ismember() == true)
|
|
|
{
|
|
|
+ Log::record("need_wechat_author 1 2",Log::DEBUG);
|
|
|
+
|
|
|
$loginer->bind($user_info);
|
|
|
$loginer->login();
|
|
|
unset($_SESSION['wx_author']);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ Log::record("need_wechat_author 2",Log::DEBUG);
|
|
|
+
|
|
|
|
|
|
return false;
|
|
|
}
|