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
a73a25d6
Commit
a73a25d6
authored
Jun 29, 2017
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加获取学院推荐课程列表服务
parent
d9a8d30c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
3 deletions
+20
-3
_init.php
example/_init.php
+1
-1
xue_course_list.php
example/xue_course_list.php
+11
-0
client_config_prod.php
src/client_config_prod.php
+0
-0
CourseList.php
src/xue/CourseList.php
+8
-2
No files found.
example/_init.php
View file @
a73a25d6
...
@@ -7,6 +7,6 @@
...
@@ -7,6 +7,6 @@
*/
*/
require
__DIR__
.
'/../src/autoload.php'
;
require
__DIR__
.
'/../src/autoload.php'
;
\internalApi\base\Client
::
config
(
include
__DIR__
.
'/../src/client_config_
test
.php'
);
\internalApi\base\Client
::
config
(
include
__DIR__
.
'/../src/client_config_
dev
.php'
);
header
(
'Content-Type: text/html; charset=utf-8'
);
header
(
'Content-Type: text/html; charset=utf-8'
);
example/xue_course_list.php
0 → 100644
View file @
a73a25d6
<?php
use
internalApi\xue\CourseList
;
require
__DIR__
.
'/_init.php'
;
//CourseList::setDebug();
$list
=
CourseList
::
getRecommendList
();
print_r
(
$list
);
\ No newline at end of file
src/
xue/
client_config_prod.php
→
src/client_config_prod.php
View file @
a73a25d6
File moved
src/xue/CourseList.php
View file @
a73a25d6
...
@@ -13,9 +13,15 @@ use internalApi\base\Client;
...
@@ -13,9 +13,15 @@ use internalApi\base\Client;
class
CourseList
extends
Client
class
CourseList
extends
Client
{
{
public
static
function
getRecommendList
(
$num
=
10
,
$page
=
1
)
/**
* 获取推荐课程列表
*
* @param int $num
* @return array
*/
public
static
function
getRecommendList
(
$num
=
10
)
{
{
return
self
::
call
(
'course
List.recommendList'
,
compact
(
'num'
,
'page
'
));
return
self
::
call
(
'course
.getRecommendList'
,
compact
(
'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