diff --git a/var/Widget/Comments/Edit.php b/var/Widget/Comments/Edit.php index eb75d814..078f21ce 100644 --- a/var/Widget/Comments/Edit.php +++ b/var/Widget/Comments/Edit.php @@ -146,10 +146,9 @@ class Edit extends Comments implements ActionInterface /** * 删除评论 * - * @return int * @throws Exception */ - public function deleteComment(): int + public function deleteComment() { $comments = $this->request->filter('int')->getArray('coid'); $deleteRows = 0; @@ -200,8 +199,6 @@ class Edit extends Comments implements ActionInterface /** 返回原网页 */ $this->response->goBack(); } - - return $deleteRows; } /**