JoinRecordController.class.php 793 Bytes
<?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;
    }
}