deploy: auto commit server changes 2026-06-12 18:38:59
This commit is contained in:
@@ -17,6 +17,7 @@ class CommunityCommentController extends BaseAdminController
|
||||
public function updateStatus()
|
||||
{
|
||||
$params = (new CommunityCommentValidate())->post()->goCheck('status');
|
||||
$params['comment_type'] = (string) $params['comment_type'];
|
||||
$result = CommunityCommentLogic::updateStatus($params);
|
||||
if (true === $result) {
|
||||
return $this->success('修改成功', [], 1, 1);
|
||||
@@ -27,7 +28,11 @@ class CommunityCommentController extends BaseAdminController
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CommunityCommentValidate())->post()->goCheck('delete');
|
||||
CommunityCommentLogic::delete($params);
|
||||
$params['comment_type'] = (string) $params['comment_type'];
|
||||
$result = CommunityCommentLogic::delete($params);
|
||||
if (false === $result) {
|
||||
return $this->fail(CommunityCommentLogic::getError());
|
||||
}
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user