Commit 3c99296f authored by 杨培's avatar 杨培

增加获取考试API

parent 485b7c99
......@@ -6,8 +6,9 @@ require __DIR__.'/_init.php';
//CourseList::setDebug();
$list = CourseList::getRecommendList();
//$list = CourseList::getRecommendList();
//$list = \internalApi\xue\Exam::getExam(4);
$list = \internalApi\xue\Exam::getExams([4, 5, 6, 7]);
print_r($list);
\ No newline at end of file
......@@ -24,4 +24,15 @@ class Exam extends Client
return self::call('exam.getExam', compact('examId'));
}
/**
* 获取多个考试的基本信息
*
* @param int $ids
* @return array
*/
public static function getExams($ids)
{
return self::call('exam.getExams', compact('ids'));
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment