JoinRecordController.class.php
793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* 获取模拟试卷已参与记录列表
* JoinRecordController.class.php
* @author: houyingcai
* @email: 594609175@qq.com
* @date : 2017-05-23 16:32:33
*/
namespace Apicp\Controller\Answer;
use Common\Service\AnswerService;
class JoinRecordController extends AbstractController
{
public function Index_post()
{
$params = I('post.');
$uid = $params['uid'];
// 实例化答卷表对象
$answer_s = new AnswerService();
// 模拟记录列表
$list = $answer_s->test_record_list($params, $uid);
unset(
$list['ep_status'],
$list['exam_times'],
$list['pass_times'],
$list['answer_num']
);
$this->_result = $list;
return true;
}
}