mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
task claim
This commit is contained in:
@@ -150,6 +150,13 @@ class AjaxInterface{
|
||||
$rep = new \App\Repositories\MedalRepository();
|
||||
return $rep->saveUserMedal($CURUSER['id'], $data);
|
||||
}
|
||||
|
||||
public static function claimTask($params)
|
||||
{
|
||||
global $CURUSER;
|
||||
$rep = new \App\Repositories\ExamRepository();
|
||||
return $rep->assignToUser($CURUSER['id'], $params['exam_id']);
|
||||
}
|
||||
}
|
||||
|
||||
$class = 'AjaxInterface';
|
||||
|
||||
Reference in New Issue
Block a user