public function refaceAction($uid, $action = null) { if ($this->isAjax()) { $data = $this->request->getPost(); $model = new FaceForm('reface'); if ($model->validate($data)) { if ($model->reface()) { //更新状态 LoanSketch::updateStatus($data['uid'], \App\LoanStatus::getStatusReface()); Log::add($data['uid'], $this->getOperatorId(), \App\Config\Log::loanOperate('reface')); $this->success('操作成功'); } else { $this->error('操作失败'); } } else { $this->error('验证失败'); } exit; } empty($uid) and $this->pageError('param'); $infos = $this->detail($uid, ['user', 'face', 'loansketch']); $infos['uid'] = $uid; $infos['can_modify_actions'] = $this->canModifyActions($uid, $infos['loansketch']['status']); $infos['action'] = $action; $this->view->setVars($infos); $this->view->pick('loan/info/reface'); }