Commit 9c94665a by doszhang

d

parent ce2753a6
...@@ -36,6 +36,7 @@ trait ControllerTrait ...@@ -36,6 +36,7 @@ trait ControllerTrait
$state = 1; $state = 1;
SignedCookie::set_cookie("redirect_back", $redirect_url, C('cookie_sign'), 86400 * 60); SignedCookie::set_cookie("redirect_back", $redirect_url, C('cookie_sign'), 86400 * 60);
$auth_url = $helper->auth_url($callback_url, $this->auth_type, $state); $auth_url = $helper->auth_url($callback_url, $this->auth_type, $state);
var_dump($auth_url);die();
redirect($auth_url); redirect($auth_url);
exit(0); exit(0);
} }
...@@ -49,7 +50,6 @@ trait ControllerTrait ...@@ -49,7 +50,6 @@ trait ControllerTrait
} }
public function auth() public function auth()
{ {
echo 123;die();
//如果是分享出去的链接,重新授权 //如果是分享出去的链接,重新授权
if (!empty($_GET['from'])) { if (!empty($_GET['from'])) {
$this->request_auth(); $this->request_auth();
......
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