Example #1
0
 public function createPay()
 {
     //订单状态
     //购物车->确认订单(完善,确认订单信息)->提交订单->支付订单->商家打印->等待配送->完成订单
     // 		$username = $this->input->post('username');
     // 		$files = $this->input->post('files');
     try {
         $order = new MY_Order();
         $charge = $order->createPingPay();
         echo $charge;
     } catch (MY_Exception $e) {
         $this->echo_msg(false, $e->error_msg);
     }
 }