request->get(); $id = $get['id'] ?? 0; $product = ProductClass::getById($id, true); if ($product->mainId != $this->mainId) { util::fail('没有权限'); } $where = ['itemId' => $id]; $list = PriceChangeClass::getChangeList($where); util::success($list); } }