request->get(); $orderSn = $get['orderSn'] ?? ''; $productId = $get['productId'] ?? ''; $order = OrderClass::getByCondition(['orderSn' => $orderSn], true); if (empty($order)) { util::fail('没有找到订单'); } if ($order->mainId != $this->mainId) { util::fail('不是你的订单'); } $product = ProductClass::getByCondition(['id' => $productId], true); if (empty($product)) { util::fail('没有找到花材'); } if ($product->mainId != $this->mainId) { util::fail('不是你的花材'); } $list = OrderTreeClass::getAllByCondition(['orderSn' => $orderSn, 'productId' => $productId], 'id asc', '*'); util::success(['list' => $list]); } }