...
|
...
|
@@ -78,9 +78,21 @@ class ActiveController extends WeChatBaseController |
|
|
$this->assign('list',$data);
|
|
|
return $this->fetch('active_detail');
|
|
|
}
|
|
|
|
|
|
public function comment(){
|
|
|
$id=$this->request->param('id');
|
|
|
$this->assign('id',$id);
|
|
|
$re=Db::name('users')->where(['open_id'=>session('wechat_user')['id']])->find();
|
|
|
if (!$re['mobile']){
|
|
|
return 2;
|
|
|
}
|
|
|
else {
|
|
|
return url('portal/active/comment2',array('id'=>$id));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public function comment2(){
|
|
|
$id=$this->request->param('id');
|
|
|
$this->assign('id', $id);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
...
|
...
|
|