DetailController.class.php
674 Bytes
<?php
/**
* 【考试中心-手机端】批阅考试详情接口
* DetailController.class.php
* @author: 蔡建华
* @date: 2017-06-19
*/
namespace Api\Controller\Marking;
use Common\Service\AnswerService;
class DetailController extends AbstractController
{
public function Index_post()
{
$ep_id = I('post.ep_id', 0, 'rintval');
if (!$ep_id) {
E('_EMPTY_EP_ID');
}
// 实例化答卷service
$answer_s = new AnswerService();
// 批阅详情
$result = $answer_s->marking_detail($ep_id, $this->uid);
// 返回结果
$this->_result = $result;
return true;
}
}