SubmitController.class.php 744 Bytes
<?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;
    }

}