Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
3c99296f
Commit
3c99296f
authored
Aug 11, 2017
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加获取考试API
parent
485b7c99
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
xue_course_list.php
example/xue_course_list.php
+2
-1
Exam.php
src/xue/Exam.php
+11
-0
No files found.
example/xue_course_list.php
View file @
3c99296f
...
@@ -6,8 +6,9 @@ require __DIR__.'/_init.php';
...
@@ -6,8 +6,9 @@ require __DIR__.'/_init.php';
//CourseList::setDebug();
//CourseList::setDebug();
$list
=
CourseList
::
getRecommendList
();
//
$list = CourseList::getRecommendList();
//$list = \internalApi\xue\Exam::getExam(4);
//$list = \internalApi\xue\Exam::getExam(4);
$list
=
\internalApi\xue\Exam
::
getExams
([
4
,
5
,
6
,
7
]);
print_r
(
$list
);
print_r
(
$list
);
\ No newline at end of file
src/xue/Exam.php
View file @
3c99296f
...
@@ -24,4 +24,15 @@ class Exam extends Client
...
@@ -24,4 +24,15 @@ class Exam extends Client
return
self
::
call
(
'exam.getExam'
,
compact
(
'examId'
));
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment