request->get(); $productId = $get['productId'] ?? 0; $product = ProductClass::getById($productId, true); if (empty($product)) { util::fail('没有找到花材'); } if ($product->mainId != $this->mainId) { util::fail('不是你的花材'); } $where = ['itemId' => $productId]; $respond = OrderItemClass::getOrderInfoList($where); util::success($respond); } }