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
f51145bf
Commit
f51145bf
authored
May 31, 2018
by
wangjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取推荐免费或付费课程
parent
8f69b203
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
xue_recommend_course.php
example/xue_recommend_course.php
+14
-0
Course.php
src/xue/Course.php
+12
-0
No files found.
example/xue_recommend_course.php
0 → 100644
View file @
f51145bf
<?php
/**
* Created by PhpStorm.
* User: QQ
* Date: 2018/5/31
* Time: 16:49
*/
use
internalApi\xue\Course
;
require
__DIR__
.
'/_init.php'
;
Course
::
setDebug
(
true
);
print_r
(
Course
::
getRecommendCourseShow
());
\ No newline at end of file
src/xue/Course.php
View file @
f51145bf
...
@@ -35,4 +35,16 @@ class Course extends Client
...
@@ -35,4 +35,16 @@ class Course extends Client
return
self
::
call
(
'course.getSectionInfo'
,
compact
(
'sectionId'
));
return
self
::
call
(
'course.getSectionInfo'
,
compact
(
'sectionId'
));
}
}
/**
* 获取推荐免费或付费课程
* @param int $fee 0是免费 1是付费
* @param $num
* @return mixed
*/
public
static
function
getRecommendCourseShow
(
$fee
=
0
,
$num
=
1
)
{
return
self
::
call
(
'course.getRecommendCourseShow'
,
compact
(
'fee'
,
'num'
));
}
}
}
\ 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