add clear shout box

This commit is contained in:
xiaomlove
2022-10-23 19:42:08 +08:00
parent c98e5153d5
commit 71bd2ad3f7
5 changed files with 39 additions and 2 deletions
+8
View File
@@ -123,3 +123,11 @@ function consumeBenefit($params)
$rep = new \App\Repositories\UserRepository();
return $rep->consumeBenefit($CURUSER['id'], $params);
}
function clearShoutBox($params)
{
global $CURUSER;
user_can('sbmanage', true);
\Nexus\Database\NexusDB::table('shoutbox')->delete();
return true;
}