Commit e915ab2e by doszhang

dos

parent 93e7629a
...@@ -21,13 +21,12 @@ class IndexController extends Controller ...@@ -21,13 +21,12 @@ class IndexController extends Controller
session_start(); session_start();
$_SESSION['joinTime'] = time(); $_SESSION['joinTime'] = time();
$user = $this->get_user_info_from_cookie(); $user = $this->get_user_info_from_cookie();
echo 1;die();
// 如果没有获取到用户信息,引导用户授权 // 如果没有获取到用户信息,引导用户授权
if (!$user) { if (!$user) {
$this->request_auth($this->get_url()); $this->request_auth($this->get_url());
return; return;
} }
echo 2; echo 2;die();
M('join_num')->where('id=1')->setInc('num'); M('join_num')->where('id=1')->setInc('num');
$joinNum = M('join_num')->where('id=1')->find(); $joinNum = M('join_num')->where('id=1')->find();
$this->assign('pt',$user['prize_type']); $this->assign('pt',$user['prize_type']);
......
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