Skip to content

Commit

Permalink
修改QQ的回调地址
Browse files Browse the repository at this point in the history
  • Loading branch information
ideal committed Jun 15, 2015
1 parent 74fa7de commit cc34433
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ public function run()

// 回调地址
$config = Wekit::C()->getConfigByName('site', 'info.url');
$redirecturl = $config['value'].'/index.php?m=u&c=login&a=thirdlogincallback&platform='.$type;
if ($type == 'qq') {
// QQ的回调地址填写比较诡异,提示和文档都是错的
$redirecturl = $config['value'].'/index.php';
} else {
$redirecturl = $config['value'].'/index.php?m=u&c=login&a=thirdlogincallback&platform='.$type;
}

//
$this->setOutput($redirecturl, 'redirecturl');
Expand Down

0 comments on commit cc34433

Please sign in to comment.