From f40c5c178e068a993538f560a71838a809ed1a32 Mon Sep 17 00:00:00 2001 From: joyqi Date: Fri, 3 Sep 2021 12:40:02 +0800 Subject: [PATCH] fix delete --- var/Widget/Comments/Edit.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; } /**