|
@@ -24,7 +24,7 @@ class Comment extends Base
|
|
|
*/
|
|
|
public function index()
|
|
|
{
|
|
|
- $params = $this->request->param();
|
|
|
+ $params = $this->request->post();
|
|
|
|
|
|
// 验证参数
|
|
|
$validate = new CommentValidate();
|
|
@@ -125,12 +125,9 @@ class Comment extends Base
|
|
|
$comment_id = (int)$params['comment_id'];
|
|
|
$evaluate_status = (int)$params['evaluate_status'];
|
|
|
|
|
|
- try {
|
|
|
- CommentService::auditComment($comment_id, $evaluate_status);
|
|
|
- $this->success('审核成功');
|
|
|
- } catch (\Exception $e) {
|
|
|
- $this->error($e->getMessage());
|
|
|
- }
|
|
|
+ CommentService::auditComment($comment_id, $evaluate_status);
|
|
|
+ $this->success('审核成功');
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|