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
e38b1e36
Commit
e38b1e36
authored
Mar 26, 2019
by
菁菁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程接口
parent
bf9fbb40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
xue_course_list.php
example/xue_course_list.php
+1
-1
Course.php
src/xue/Course.php
+5
-5
No files found.
example/xue_course_list.php
View file @
e38b1e36
...
@@ -12,6 +12,6 @@ Course::setDebug();
...
@@ -12,6 +12,6 @@ Course::setDebug();
//$list = \internalApi\xue\Exam::getExams([4, 5, 6, 7]);
//$list = \internalApi\xue\Exam::getExams([4, 5, 6, 7]);
//$list = \internalApi\xue\Course::getCourseInfo(37);
//$list = \internalApi\xue\Course::getCourseInfo(37);
$list
=
\internalApi\xue\Course
::
get
SectionInfo
(
47
);
$list
=
\internalApi\xue\Course
::
get
CourseSectionInfo
(
151
);
print_r
(
$list
);
print_r
(
$list
);
\ No newline at end of file
src/xue/Course.php
View file @
e38b1e36
...
@@ -88,13 +88,13 @@ class Course extends Client
...
@@ -88,13 +88,13 @@ class Course extends Client
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
* @throws \internalApi\base\ClientException
*/
*/
public
static
function
get
SectionBasic
Info
(
$sectionId
)
public
static
function
get
CourseSection
Info
(
$sectionId
)
{
{
return
self
::
call
(
'course.get
SectionBasic
Info'
,
compact
(
'sectionId'
));
return
self
::
call
(
'course.get
CourseSection
Info'
,
compact
(
'sectionId'
));
}
}
/**
/**
* 获取分类的课程
* 获取分类的课程
节列表
* @param $categoryId
* @param $categoryId
* @param int $limit
* @param int $limit
* @param int $offset
* @param int $offset
...
@@ -102,9 +102,9 @@ class Course extends Client
...
@@ -102,9 +102,9 @@ class Course extends Client
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
* @throws \internalApi\base\ClientException
*/
*/
public
static
function
get
AllCourse
Lists
(
$categoryId
,
$limit
=
10
,
$offset
=
0
)
public
static
function
get
CourseSection
Lists
(
$categoryId
,
$limit
=
10
,
$offset
=
0
)
{
{
return
self
::
call
(
'course.get
AllCourse
Lists'
,
compact
(
'categoryId'
,
'limit'
,
'offset'
));
return
self
::
call
(
'course.get
CourseSection
Lists'
,
compact
(
'categoryId'
,
'limit'
,
'offset'
));
}
}
}
}
\ 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