request->get('id', 0); $order = OrderService::getById($id); OrderService::valid($order, $this->shopId); $list = OrderSendService::sendList($order); util::success($list); } public function actionDeliver() { $post = Yii::$app->request->post(); $id = isset($post['id']) ? $post['id'] : 0; $order = OrderService::getById($id); OrderService::valid($order, $this->shopId); $post['sjId'] = $this->sjId; $post['orderSn'] = $order['orderSn']; OrderSendService::deliver($post); } public function actionReach() { $post = Yii::$app->request->post(); $id = isset($post['id']) ? $post['id'] : 0; $order = OrderService::getById($id); OrderService::valid($order, $this->shopId); OrderSendService::reach($order); } }