<?php /** * Created by PhpStorm. * User: zhonglei * Date: 17/4/18 * Time: 14:31 */ namespace Frontend\Controller\Index; use Common\Common\Constant; class QuestionCheckController extends AbstractController { /** * 提问审核 * @author tangxingguo */ public function Index() { $question_id = I('get.question_id', 0, 'intval'); $identity = I('get.identity', 0, 'intval'); // 过滤参数 $params = ['question_id' => $question_id]; if (in_array($identity, [Constant::ANSWER_OPERATE_IDENTITY_QER, Constant::ANSWER_OPERATE_IDENTITY_AER, Constant::ANSWER_OPERATE_IDENTITY_CER])) { $params['identity'] = $identity; } redirectFront('/app/page/answer/check-questions/check-questions', $params); } }