request->get('id', 0); $order = OrderService::getById($id); OrderService::valid($order, $this->sjId); //发货列表 $list = OrderSendService::sendList($order); util::success($list); } //发货 shish 2019.12.17 public function actionDeliver() { $post = Yii::$app->request->post(); $id = isset($post['id']) ? $post['id'] : 0; $order = OrderService::getById($id); OrderService::valid($order, $this->sjId); $post['merchantId'] = $this->sjId; OrderSendService::deliver($post); } //送达 shish 2019.12.17 public function actionReach() { $post = Yii::$app->request->post(); $id = isset($post['id']) ? $post['id'] : 0; $option = isset($post['option']) ? $post['option'] : 0; $order = OrderService::getById($id); OrderService::valid($order, $this->sjId); OrderSendService::reach($order, ['option' => $option]); } }