SubmitController.class.php
744 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
<?php
/**
* 【考试中心-手机端】闯关手动交卷接口
* SubmitController.class.php
* @author: 蔡建华
* @date: 2017-05-23
*/
namespace Api\Controller\Breakthrough;
use Common\Common\Integral;
use Common\Common\Msg;
use Common\Service\PaperService;
class SubmitController extends AbstractController
{
public function Index_post()
{
$params = I('post.');
// 实例化闯关答卷service
$paper_s = new PaperService();
// 闯关交卷
$res = $paper_s->submit_break_papers($params, $this->uid);
// 操作失败,返回false
if (!$res) {
return false;
}
// 返回结果
$this->_result = $res;
return true;
}
}