mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
finish medal.php
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user