正在显示
2 个修改的文件
包含
21 行增加
和
0 行删除
@@ -9,6 +9,16 @@ use think\Db; | @@ -9,6 +9,16 @@ use think\Db; | ||
9 | 9 | ||
10 | class MembersController extends WeChatBaseController{ | 10 | class MembersController extends WeChatBaseController{ |
11 | 11 | ||
12 | + public function _initialize(){ | ||
13 | + | ||
14 | + if(cmf_get_current_user_id()){ | ||
15 | + | ||
16 | + }else{ | ||
17 | + return $this->fetch(':index'); | ||
18 | + } | ||
19 | + | ||
20 | + } | ||
21 | + | ||
12 | //显示会员页 | 22 | //显示会员页 |
13 | public function index(){ | 23 | public function index(){ |
14 | 24 |
@@ -9,6 +9,17 @@ use think\Db; | @@ -9,6 +9,17 @@ use think\Db; | ||
9 | class VoteController extends WeChatBaseController{ | 9 | class VoteController extends WeChatBaseController{ |
10 | 10 | ||
11 | 11 | ||
12 | + public function _initialize(){ | ||
13 | + | ||
14 | + if(cmf_get_current_user_id()){ | ||
15 | + | ||
16 | + }else{ | ||
17 | + return $this->fetch(':index'); | ||
18 | + } | ||
19 | + | ||
20 | + } | ||
21 | + | ||
22 | + | ||
12 | //显示投票页 | 23 | //显示投票页 |
13 | public function index(){ | 24 | public function index(){ |
14 | 25 |
-
请 注册 或 登录 后发表评论