Esempio n. 1
0
 public function remitAction()
 {
     if ($this->isAjax()) {
         $data = $this->request->getPost();
         $uid = $data['uid'];
         !$uid and $this->error('参数错误');
         $model = new LoanForm('remit');
         if ($result = $model->validate($data)) {
             if ($model->remit()) {
                 Log::add($uid, $this->getOperatorId(), \App\Config\Log::loanOperate('remit_certify'));
                 $this->success('操作成功');
             } else {
                 $this->error('操作失败');
             }
         } else {
             $this->error('验证失败');
         }
         exit;
     }
 }