作者 郭鑫
1 个管道 的构建 通过 耗费 1 秒

修改

@@ -22,15 +22,15 @@ class CommentController extends HomeBaseController @@ -22,15 +22,15 @@ class CommentController extends HomeBaseController
22 public function _initialize() 22 public function _initialize()
23 { 23 {
24 parent::_initialize(); // TODO: Change the autogenerated stub 24 parent::_initialize(); // TODO: Change the autogenerated stub
25 - Session::set('uid','3');  
26 -// $wx = new WxloginController();  
27 -// $where_member['id'] = Session::get('uid');  
28 -// $member = Db::name('Member')->where($where_member)->find();  
29 -// if($member['status'] == 8){  
30 -// $this->apiResponse('0','您已被拉黑');  
31 -// }else if(empty($member['name'])){  
32 -// $this->apiResponse('0','请先实名认证',url('Index/index'));  
33 -// } 25 +// Session::set('uid','3');
  26 + $wx = new WxloginController();
  27 + $where_member['id'] = Session::get('uid');
  28 + $member = Db::name('Member')->where($where_member)->find();
  29 + if($member['status'] == 8){
  30 + $this->apiResponse('0','您已被拉黑');
  31 + }else if(empty($member['name'])){
  32 + $this->apiResponse('0','请先实名认证',url('Index/index'));
  33 + }
34 34
35 } 35 }
36 36