task claim

This commit is contained in:
xiaomlove
2024-06-07 02:51:05 +08:00
parent 08067b9d01
commit bc81b158be
14 changed files with 68 additions and 15 deletions
+7
View File
@@ -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';