作者 anyv
1 个管道 的构建 通过 耗费 0 秒

4

@@ -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