/** * 确认放款 */ public function confirmAction($uid) { if ($this->isAjax()) { !$uid and $this->error('参数错误'); if (Loan::updateStatus($uid, \App\LoanStatus::getStatusRunConfirm())) { Log::add($uid, $this->getOperatorId(), \App\Config\Log::loanOperate('runconfirm')); $this->success('操作成功'); } $this->error('操作失败'); } $loan = Loan::findByUid($uid); $user = User::findFirst($uid)->toArray(); $this->view->setVars(['loan' => $loan, 'user' => $user]); $this->view->pick('run/detail'); }