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