public function index()
 {
     $id = I('id', 0, 'intval');
     $id > 0 && $this->log($id);
     $map = [];
     $uid = I('get.uid', 0, 'intval');
     if ($uid) {
         $map['w.uid'] = $uid;
     }
     $withdrawModel = new \Common\Model\UserMoneyWithdrawModel();
     $_status = $withdrawModel->getStatus();
     $status = I('status', -1, 'intval');
     if ($status >= 0) {
         $map['w.status'] = $status;
     }
     $this->assign('status', $status);
     $this->assign('_status', ['-1' => '所有状态'] + $_status);
     $model = M()->table('zj_user_money_withdraw w');
     $model->join('zj_user u on u.uid=w.uid')->join('zj_user_money m on m.uid=w.uid');
     $list = $this->lists($model, $map, 'w.created desc', 'w.*,u.uname,u.mobile');
     int_to_string($list, ['status' => $this->_status]);
     $this->assign('_list', $list);
     $this->meta_title = '提现申请';
     $this->display();
 }
 /**
  * @title 占位
  *
  * @method get
  */
 public function index()
 {
     $payModel = new \Job\Model\PayModel();
     // var_dump ( $payModel->company ( 112 ) ? : $payModel->getError () );
     $userMoneyModel = new \Common\Model\UserMoneyModel();
     // var_dump ( $userMoneyModel->checkPassword( 2779, '123456' ));// ? : $payModel->getError () );
     $userMoneyWithdrawModel = new \Common\Model\UserMoneyWithdrawModel();
     var_dump($userMoneyWithdrawModel->apply(2779, 1, 1, '温守力', '*****@*****.**', 'test') ?: $userMoneyWithdrawModel->getError());
     $billModel = new \Loan\Model\BillModel();
     // var_dump($billModel->autoRepay(2779));
     $orderModel = new \Loan\Model\OrderModel();
     // var_dump($orderModel->autoRepay(2779, 1));
 }