Esempio n. 1
0
 public function financeLend()
 {
     $orderModel = new \Loan\Model\OrderModel();
     $month = I('month', 0, 'intval');
     if (IS_GET) {
         $money = $orderModel->lend(I('order_id')) or $this->error($orderModel->getError());
         $this->success($money);
         exit;
     }
     $orderModel->lend(I('order_id'), I('money')) or $this->error($orderModel->getError());
     $this->success('放款操作成功!');
 }