Commit 7c30a45c by 冷斌

fix bug

parent a7a8c5ab
...@@ -12,7 +12,7 @@ class TopicAction extends CommonAction ...@@ -12,7 +12,7 @@ class TopicAction extends CommonAction
{ {
protected $school; protected $school;
protected $mhm_id; protected $mhm_id;
public function _initialize() public function _initialize()
{ {
parent::_initialize(); parent::_initialize();
...@@ -80,6 +80,8 @@ class TopicAction extends CommonAction ...@@ -80,6 +80,8 @@ class TopicAction extends CommonAction
$data = D('Topics')->getTopic(1,$_GET['cate'],$map); $data = D('Topics')->getTopic(1,$_GET['cate'],$map);
$this->assign('topic_data',$data); $this->assign('topic_data',$data);
if($this->isAjax()) { if($this->isAjax()) {
var_dump($data);
die;
echo json_encode($data); echo json_encode($data);
exit(); exit();
} }
...@@ -363,4 +365,4 @@ class TopicAction extends CommonAction ...@@ -363,4 +365,4 @@ class TopicAction extends CommonAction
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment