mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
new feature: claim
This commit is contained in:
@@ -47,3 +47,17 @@ function getPtGen($params)
|
||||
}
|
||||
}
|
||||
|
||||
function addClaim($params)
|
||||
{
|
||||
global $CURUSER;
|
||||
$rep = new \App\Repositories\ClaimRepository();
|
||||
return $rep->store($CURUSER['id'], $params['torrent_id']);
|
||||
}
|
||||
|
||||
function removeClaim($params)
|
||||
{
|
||||
global $CURUSER;
|
||||
$rep = new \App\Repositories\ClaimRepository();
|
||||
return $rep->delete($params['id'], $CURUSER['id']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user