checkToken(); if ($token[ 'code' ] < 0) { echo $this->response($token); exit; } } /** * 发货 * @return false|string */ public function delivery() { $order_id = $this->params[ 'order_id' ] ?? 0; $virtual_order_model = new VirtualOrderModel(); $params = array ( 'order_id' => $order_id, 'site_id' => $this->site_id ); $result = $virtual_order_model->virtualDelivery($params); return $this->response($result); } }