Exemplo n.º 1
0
 /**
  * 查看更多回复(评论)接口
  *
  * @return void
  * @author 
  **/
 public function actionReplyMore()
 {
     // 获取数据
     $parent_id = Yii::$app->request->post('parent_id');
     if ($parent_id) {
         $comment_model = new Comment();
         $data = $comment_model->getAllRelyResult($parent_id);
         echo Yii::$app->util->formatResEncode('0', '成功', $data);
     } else {
         echo Yii::$app->util->formatResEncode('1002', '参数异常');
     }
     return;
 }