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
485b7c99
Commit
485b7c99
authored
Aug 08, 2017
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加获取考试API
parent
c09e5b85
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
3 deletions
+34
-3
bbs_basic.php
example/bbs_basic.php
+1
-1
ucenter_favorite.php
example/ucenter_favorite.php
+4
-2
xue_course_list.php
example/xue_course_list.php
+2
-0
Exam.php
src/xue/Exam.php
+27
-0
No files found.
example/bbs_basic.php
View file @
485b7c99
...
@@ -7,4 +7,4 @@ require __DIR__.'/_init.php';
...
@@ -7,4 +7,4 @@ require __DIR__.'/_init.php';
Thread
::
setDebug
(
true
);
Thread
::
setDebug
(
true
);
$thread
=
Thread
::
getHotThreads
(
5
);
$thread
=
Thread
::
getHotThreads
(
5
);
var_dump
(
$thread
);
print_r
(
$thread
);
\ No newline at end of file
\ No newline at end of file
example/ucenter_favorite.php
View file @
485b7c99
...
@@ -22,5 +22,7 @@ $sourceId = 3;
...
@@ -22,5 +22,7 @@ $sourceId = 3;
//$result = Favorite::delete(2);
//$result = Favorite::delete(2);
$result
=
Favorite
::
isFavorite
(
'xue'
,
'course'
,[
2
,
3
,
4
]);
Favorite
::
delete
(
'bbs'
,
'thread'
,
121
,
18
);
print_r
(
$result
);
\ No newline at end of file
//$result = Favorite::isFavorite('xue','course',[2,3,4]);
//print_r($result);
\ No newline at end of file
example/xue_course_list.php
View file @
485b7c99
...
@@ -8,4 +8,6 @@ require __DIR__.'/_init.php';
...
@@ -8,4 +8,6 @@ require __DIR__.'/_init.php';
$list
=
CourseList
::
getRecommendList
();
$list
=
CourseList
::
getRecommendList
();
//$list = \internalApi\xue\Exam::getExam(4);
print_r
(
$list
);
print_r
(
$list
);
\ No newline at end of file
src/xue/Exam.php
0 → 100644
View file @
485b7c99
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2017/8/8
* Time: 13:58
*/
namespace
internalApi\xue
;
use
internalApi\base\Client
;
class
Exam
extends
Client
{
/**
* 获取一个考试的基本信息
*
* @param int $examId
* @return array
*/
public
static
function
getExam
(
$examId
)
{
return
self
::
call
(
'exam.getExam'
,
compact
(
'examId'
));
}
}
\ 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