'company']); $industry = trim($_REQUEST['industry'] ?? ''); if ($industry === '') { Response::error('参数错误', 400); } $pdo = DB::getInstance()->getPdo(); $attrs = $pdo->prepare( "SELECT id, attr_name, attr_type, unit FROM company_products_attr WHERE industry = ? AND is_active = 1 ORDER BY sort_order, id" ); $attrs->execute([$industry]); Response::success(['attrs' => $attrs->fetchAll()]);