finish medal.php

This commit is contained in:
xiaomlove
2022-12-19 04:15:15 +08:00
parent 26fb578435
commit cf1b5ad135
3 changed files with 37 additions and 7 deletions
+7
View File
@@ -131,3 +131,10 @@ function clearShoutBox($params)
\Nexus\Database\NexusDB::table('shoutbox')->delete();
return true;
}
function buyMedal($params)
{
global $CURUSER;
$rep = new \App\Repositories\BonusRepository();
return $rep->consumeToBuyMedal($CURUSER['id'], $params['medal_id']);
}