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
da8dd6b7
Commit
da8dd6b7
authored
Aug 15, 2017
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户中心添加考试记录的接口
parent
c1ce60b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletion
+33
-1
Exam.php
src/ucenter/Exam.php
+32
-0
Exam.php
src/xue/Exam.php
+1
-1
No files found.
src/ucenter/Exam.php
0 → 100644
View file @
da8dd6b7
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2017/8/15
* Time: 18:21
*/
namespace
internalApi\ucenter
;
use
internalApi\base\Client
;
class
Exam
extends
Client
{
/**
* 添加考试分数记录
* 添加后,合格的记录会自动算入匠心值
*
* @param int $userId
* @param int $skillExamId 考试在用户中心的ID
* @param array $scoreInfo 考试记录数组,来自学院 exam_records 表
* @return bool 添加成功返回true,失败返回false
* 失败可能是因为:该考试在用户中心已被删除或不存在、该用户不可见此考试、已经考试过并合格了等原因
*/
public
static
function
addRecord
(
$userId
,
$skillExamId
,
$scoreInfo
)
{
return
self
::
call
(
'exam.addRecord'
,
compact
(
'userId'
,
'skillExamId'
,
'scoreInfo'
));
}
}
\ No newline at end of file
src/xue/Exam.php
View file @
da8dd6b7
...
...
@@ -28,7 +28,7 @@ class Exam extends Client
* 获取多个考试的基本信息
*
* @param array $ids
* @return array
* @return array
返回考试的信息,其中键索引为考试ID
*/
public
static
function
getExams
(
$ids
)
{
...
...
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