public function offline() { $goods_id = I('goods_id'); if (IS_POST) { $this->verify(); $uid = $this->_user['uid']; $first_money = I('first_money'); $month = I('month'); $remark = I('remark'); $orderModel = new \Loan\Model\OrderModel(); $order_id = $orderModel->addOffline($uid, $goods_id, $first_money, $month, $remark); $order_id or $this->error($orderModel->getError()); $this->assign('order_id', $order_id); $this->display('success'); exit; } $model = M()->table('zj_loan_company_goods g')->join('zj_loan_company c on c.id=g.company_id'); $goods = $model->field('g.id,g.title,g.pic,g.price,c.name')->where(['g.id' => $goods_id])->find() or $this->error('找不到此商品信息!'); $this->assign('goods', $goods); $rate = D('Loan/shop_goods')->getFeeRate('offline') or $this->error('无法读取服务费率!'); $this->assign('rate', $rate); $this->display('offline_qr'); }