request->get(); $orderId = $get['orderId'] ?? 0; $order = OrderClass::getById($orderId, true); if (empty($order)) { util::fail('没有找到订单'); } if ($order->mainId != $this->mainId) { util::fail('不是你的订单哦'); } $where = []; $where['orderId'] = $orderId; $list = BookIoClass::getIoList($where); util::success($list); } //明细 ssh 20240715 public function actionGetCombine() { $get = Yii::$app->request->get(); $ioId = $get['ioId'] ?? 0; $ioRes = BookIoClass::getById($ioId,true); if (empty($ioRes)) { util::fail('没有找到'); } if($ioRes->mainId!=$this->mainId){ util::fail('不是你的哦'); } $list = BookIoClass::getCombine($ioRes); util::success(['list'=>$list]); } }