Commit 0b18eb35 by doszhang

dos

parent 23703a51
...@@ -11,7 +11,7 @@ use Think\Log; ...@@ -11,7 +11,7 @@ use Think\Log;
class IndexController extends Controller class IndexController extends Controller
{ {
private $auth_type = OAuthHelperV3::SCOPE_BASE; private $auth_type = OAuthHelperV3::SCOPE_USERINFO;
private $cookie_uid_key = 'skp-rotor-v1'; private $cookie_uid_key = 'skp-rotor-v1';
private $debug = 1; private $debug = 1;
private $today; private $today;
...@@ -19,12 +19,12 @@ class IndexController extends Controller ...@@ -19,12 +19,12 @@ class IndexController extends Controller
public function index() public function index()
{ {
// $user = $this->get_user_info_from_cookie(); $user = $this->get_user_info_from_cookie();
// // 如果没有获取到用户信息,引导用户授权 // 如果没有获取到用户信息,引导用户授权
// if (!$user) { if (!$user) {
// $this->request_auth($this->get_url()); $this->request_auth($this->get_url());
// return; return;
// } }
session_start(); session_start();
$_SESSION['joinTime'] = time(); $_SESSION['joinTime'] = time();
......
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