3 Commits

10 changed files with 3468 additions and 28432 deletions

106
app.py
View File

@@ -570,10 +570,18 @@ def api_smart_update_model(model_id):
updated_fields.append(key)
model['updated_at'] = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
model['raw_text'] = model.get('raw_text', '') + '\n' + text if text else model.get('raw_text', '')
if images:
existing_images = model.get('images', [])
model['images'] = existing_images + images
# 追加解析来源记录
parse_source = {
'type': 'smart_update',
'timestamp': datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
'images': images,
'text': text[:500] if text else '',
'updated_fields': updated_fields
}
if 'parse_sources' not in model:
model['parse_sources'] = []
model['parse_sources'].append(parse_source)
save_data(MODELS_FILE, models)
@@ -609,10 +617,17 @@ def api_smart_update_gpu(gpu_id):
updated_fields.append(key)
gpu['updated_at'] = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
gpu['raw_text'] = gpu.get('raw_text', '') + '\n' + text if text else gpu.get('raw_text', '')
if images:
existing_images = gpu.get('images', [])
gpu['images'] = existing_images + images
parse_source = {
'type': 'smart_update',
'timestamp': datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
'images': images,
'text': text[:500] if text else '',
'updated_fields': updated_fields
}
if 'parse_sources' not in gpu:
gpu['parse_sources'] = []
gpu['parse_sources'].append(parse_source)
save_data(GPUS_FILE, gpus)
@@ -648,10 +663,17 @@ def api_smart_update_cpu(cpu_id):
updated_fields.append(key)
cpu['updated_at'] = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
cpu['raw_text'] = cpu.get('raw_text', '') + '\n' + text if text else cpu.get('raw_text', '')
if images:
existing_images = cpu.get('images', [])
cpu['images'] = existing_images + images
parse_source = {
'type': 'smart_update',
'timestamp': datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
'images': images,
'text': text[:500] if text else '',
'updated_fields': updated_fields
}
if 'parse_sources' not in cpu:
cpu['parse_sources'] = []
cpu['parse_sources'].append(parse_source)
save_data(CPUS_FILE, cpus)
@@ -688,10 +710,17 @@ def api_smart_update_item(category_id, item_id):
updated_fields.append(key)
item['updated_at'] = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
item['raw_text'] = item.get('raw_text', '') + '\n' + text if text else item.get('raw_text', '')
if images:
existing_images = item.get('images', [])
item['images'] = existing_images + images
parse_source = {
'type': 'smart_update',
'timestamp': datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
'images': images,
'text': text[:500] if text else '',
'updated_fields': updated_fields
}
if 'parse_sources' not in item:
item['parse_sources'] = []
item['parse_sources'].append(parse_source)
save_data(items_file, items)
@@ -715,17 +744,25 @@ def api_smart_add_model():
results = []
models = load_data(MODELS_FILE)
# 构建解析来源记录
parse_source = {
'type': 'smart_add',
'timestamp': datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
'images': images,
'text': text[:500] if text else '' # 截取前500字符
}
for parsed in parsed_list:
# 补充必要字段
parsed['id'] = uuid.uuid4().hex[:12]
parsed['created_at'] = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
parsed['visible'] = True
parsed['raw_text'] = text
parsed['images'] = images
parsed['subcategory_id'] = subcategory_id # 保存子类别
parsed['publish_date'] = parsed.get('publish_date', '')
parsed['views'] = 0
parsed['is_pinned'] = False
parsed['product_images'] = [] # 产品展示图(不同于参数截图)
parsed['parse_sources'] = [parse_source] # 解析来源历史
models.append(parsed)
results.append(parsed)
@@ -750,16 +787,23 @@ def api_smart_add_gpu():
results = []
gpus = load_data(GPUS_FILE)
parse_source = {
'type': 'smart_add',
'timestamp': datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
'images': images,
'text': text[:500] if text else ''
}
for parsed in parsed_list:
parsed['id'] = uuid.uuid4().hex[:12]
parsed['created_at'] = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
parsed['visible'] = True
parsed['raw_text'] = text
parsed['images'] = images
parsed['subcategory_id'] = subcategory_id
parsed['publish_date'] = parsed.get('publish_date', '')
parsed['views'] = 0
parsed['is_pinned'] = False
parsed['product_images'] = []
parsed['parse_sources'] = [parse_source]
gpus.append(parsed)
results.append(parsed)
@@ -784,16 +828,23 @@ def api_smart_add_cpu():
results = []
cpus = load_data(CPUS_FILE)
parse_source = {
'type': 'smart_add',
'timestamp': datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
'images': images,
'text': text[:500] if text else ''
}
for parsed in parsed_list:
parsed['id'] = uuid.uuid4().hex[:12]
parsed['created_at'] = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
parsed['visible'] = True
parsed['raw_text'] = text
parsed['images'] = images
parsed['subcategory_id'] = subcategory_id
parsed['publish_date'] = parsed.get('publish_date', '')
parsed['views'] = 0
parsed['is_pinned'] = False
parsed['product_images'] = []
parsed['parse_sources'] = [parse_source]
cpus.append(parsed)
results.append(parsed)
@@ -820,17 +871,24 @@ def api_smart_add_item(category_id):
items_file = DATA_DIR / f'items_{category_id}.json'
items = load_data(items_file)
parse_source = {
'type': 'smart_add',
'timestamp': datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
'images': images,
'text': text[:500] if text else ''
}
for parsed in parsed_list:
parsed['id'] = uuid.uuid4().hex[:12]
parsed['category_id'] = category_id
parsed['created_at'] = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
parsed['visible'] = True
parsed['raw_text'] = text
parsed['images'] = images
parsed['subcategory_id'] = subcategory_id
parsed['publish_date'] = parsed.get('publish_date', '')
parsed['views'] = 0
parsed['is_pinned'] = False
parsed['product_images'] = []
parsed['parse_sources'] = [parse_source]
items.append(parsed)
results.append(parsed)

View File

@@ -402,6 +402,13 @@
"type": "text",
"description": "GPU简介",
"required": false
},
{
"key": "publish_date",
"label": "发布日期",
"type": "text",
"description": "产品发布日期,格式 YYYY-MM-DD",
"required": false
}
]
},
@@ -589,6 +596,13 @@
"type": "text",
"description": "CPU简介",
"required": false
},
{
"key": "publish_date",
"label": "发布日期",
"type": "text",
"description": "产品发布日期,格式 YYYY-MM-DD",
"required": false
}
]
},
@@ -602,112 +616,113 @@
"visible": true,
"subcategories": [
{
"id": "flagship",
"name": "旗舰手机",
"feature_labels": {
"price": "价格",
"processor": "处理器",
"ram_gb": "内存",
"storage_gb": "存储"
},
"icon": "ri-star-line",
"id": "flagship",
"key_features": [
"processor",
"ram_gb",
"storage_gb",
"price"
],
"feature_labels": {
"processor": "处理器",
"ram_gb": "内存",
"storage_gb": "存储",
"price": "价格"
}
"name": "旗舰手机"
},
{
"id": "midrange",
"name": "中端手机",
"feature_labels": {
"battery_mah": "电池",
"price": "价格",
"processor": "处理器",
"ram_gb": "内存"
},
"icon": "ri-price-tag-3-line",
"id": "midrange",
"key_features": [
"processor",
"ram_gb",
"battery_mah",
"price"
],
"feature_labels": {
"processor": "处理器",
"ram_gb": "内存",
"battery_mah": "电池",
"price": "价格"
}
"name": "中端手机"
}
],
"fields": [
{
"description": "手机型号",
"key": "name",
"label": "名称",
"type": "text",
"description": "手机型号",
"required": true
"required": true,
"type": "text"
},
{
"description": "手机品牌",
"key": "brand",
"label": "品牌",
"type": "text",
"description": "手机品牌",
"required": true
"required": true,
"type": "text"
},
{
"description": "CPU型号",
"key": "processor",
"label": "处理器",
"type": "text",
"description": "CPU型号",
"required": false
"required": false,
"type": "text"
},
{
"description": "RAM容量",
"key": "ram_gb",
"label": "内存(GB)",
"type": "number",
"description": "RAM容量",
"required": false
"required": false,
"type": "number"
},
{
"description": "存储容量",
"key": "storage_gb",
"label": "存储(GB)",
"type": "number",
"description": "存储容量",
"required": false
"required": false,
"type": "number"
},
{
"description": "屏幕尺寸(英寸)",
"key": "screen_size",
"label": "屏幕尺寸",
"type": "text",
"description": "屏幕尺寸(英寸)",
"required": false
"required": false,
"type": "text"
},
{
"description": "电池容量",
"key": "battery_mah",
"label": "电池(mAh)",
"type": "number",
"description": "电池容量",
"required": false
"required": false,
"type": "number"
},
{
"description": "参考价格",
"key": "price",
"label": "价格",
"type": "number",
"description": "参考价格",
"required": false
},
{
"key": "year",
"label": "年份",
"type": "number",
"description": "发布年份",
"required": false
"required": false,
"type": "number"
},
{
"description": "产品简介",
"key": "description",
"label": "描述",
"type": "text",
"description": "产品简介",
"required": false
"required": false,
"type": "text"
},
{
"description": "产品发布日期,格式 YYYY-MM-DD",
"key": "publish_date",
"label": "发布日期",
"required": false,
"type": "text"
}
]
],
"updated_at": "2026-04-28 18:28:01"
},
{
"id": "laptops",
@@ -829,6 +844,13 @@
"type": "text",
"description": "产品简介",
"required": false
},
{
"key": "publish_date",
"label": "发布日期",
"type": "text",
"description": "产品发布日期,格式 YYYY-MM-DD",
"required": false
}
]
},
@@ -914,6 +936,13 @@
"type": "text",
"description": "车型简介",
"required": false
},
{
"key": "publish_date",
"label": "发布日期",
"type": "text",
"description": "产品发布日期,格式 YYYY-MM-DD",
"required": false
}
]
},
@@ -1033,6 +1062,13 @@
"type": "text",
"description": "产品简介",
"required": false
},
{
"key": "publish_date",
"label": "发布日期",
"type": "text",
"description": "产品发布日期,格式 YYYY-MM-DD",
"required": false
}
]
}

View File

@@ -11,9 +11,9 @@
"l3_cache_mb": 384,
"tdp_watts": 360,
"price_usd": 11000,
"release_year": 2022,
"description": "AMD顶级服务器CPU96核心",
"subcategory_id": "server"
"subcategory_id": "server",
"publish_date": "2022-01-01"
},
{
"id": "epyc9554",
@@ -27,9 +27,9 @@
"l3_cache_mb": 256,
"tdp_watts": 360,
"price_usd": 6800,
"release_year": 2022,
"description": "64核心高性能服务器CPU",
"subcategory_id": "server"
"subcategory_id": "server",
"publish_date": "2022-01-01"
},
{
"id": "epyc9454",
@@ -43,9 +43,9 @@
"l3_cache_mb": 192,
"tdp_watts": 290,
"price_usd": 4100,
"release_year": 2022,
"description": "48核心服务器CPU",
"subcategory_id": "server"
"subcategory_id": "server",
"publish_date": "2022-01-01"
},
{
"id": "xeonw9359x",
@@ -59,9 +59,9 @@
"l3_cache_mb": 105,
"tdp_watts": 350,
"price_usd": 6200,
"release_year": 2023,
"description": "Intel顶级工作站CPU",
"subcategory_id": "server"
"subcategory_id": "server",
"publish_date": "2023-01-01"
},
{
"id": "xeonw5345",
@@ -75,9 +75,9 @@
"l3_cache_mb": 45,
"tdp_watts": 230,
"price_usd": 950,
"release_year": 2023,
"description": "中端工作站CPU",
"subcategory_id": "server"
"subcategory_id": "server",
"publish_date": "2023-01-01"
},
{
"id": "ryzen97950x",
@@ -91,9 +91,9 @@
"l3_cache_mb": 64,
"tdp_watts": 170,
"price_usd": 550,
"release_year": 2022,
"description": "顶级消费级CPU适合AI开发",
"subcategory_id": "desktop"
"subcategory_id": "desktop",
"publish_date": "2022-01-01"
},
{
"id": "ryzen97950x3d",
@@ -107,9 +107,9 @@
"l3_cache_mb": 144,
"tdp_watts": 120,
"price_usd": 700,
"release_year": 2023,
"description": "带3D V-Cache游戏性能更强",
"subcategory_id": "mobile"
"subcategory_id": "mobile",
"publish_date": "2023-01-01"
},
{
"id": "intel14900k",
@@ -123,9 +123,9 @@
"l3_cache_mb": 36,
"tdp_watts": 125,
"price_usd": 580,
"release_year": 2023,
"description": "Intel顶级消费级CPU",
"subcategory_id": "desktop"
"subcategory_id": "desktop",
"publish_date": "2023-01-01"
},
{
"name": "AMD 锐龙 AI 9 H 365",
@@ -142,7 +142,7 @@
"created_at": "2026-04-20 23:19:20",
"visible": true,
"raw_text": "AMD 锐龙 AI 9 H 365\nAMD 锐龙 AI 处理器助力打造卓越 AI PC\n\n \n全部折叠\n一般规格\n名称\nAMD 锐龙 AI 9 H 365\n产品系列\n锐龙\n系列\n锐龙 AI 300 系列\n外形规格\n笔记本电脑 , 台式机\nAMD PRO 技术\n否\n区域供货状况\n中国\n原代号\nStrix Point\n处理器架构\n4x Zen 5 , 6x Zen 5c\nCPU 核心数\n10\n多线程 (SMT)\n是\n线程数\n20\n最高加速时钟频率 \n最高可达 5 GHz\nMax Zen5c Clock \n最高可达 3.3 GHz\n基准时钟频率 \n2 GHz\nZen5 Base Clock\n2 GHz\nZen5c Base Clock\n2 GHz\nL2 高速缓存\n10 MB\nL3 高速缓存\n24 MB\n默认热设计功耗 (TDP)\n28W\nAMD 可配置热设计功耗 (cTDP)\n15-54W\nCPU 核心的处理器工艺\nTSMC 4nm FinFET\n封装芯片计数\n1\nAMD EXPO™ 内存超频技术\n是\n精准频率提升 (PBO)\n是\n曲线优化器电压偏移\n是\nCPU 平台\nFP8\n支持的扩展\nAES , AMD-V , AVX , AVX2 , AVX512 , FMA3 , MMX-plus , SHA , SSE , SSE2 , SSE3 , SSE4.1 , SSE4.2 , SSE4A , SSSE3 , x86-64\n最高工作温度 (Tjmax)\n100°C\n*支持的操作系统\nWindows 11 - 64-Bit Edition , RHEL x86 64-Bit , Ubuntu x86 64-Bit\n连接\nNative USB 4 (40Gbps)\n2\nNative USB 3.2 Gen 2 (10Gbps)\n2\nNative USB 2.0 (480Mbps)\n4\nPCI Express® Version\nPCIe® 4.0\n原生 PCIe® 通道 (总共/可用)\n16 , 16\nNVMe 支持\nBoot , RAID0 , RAID1\n系统内存类型\nDDR5 (FP8) , LPDDR5X (FP8)\n内存通道数\n2\n最大内存\n256 GB\n最高内存速度\n2x2R\tDDR5-5600, LPDDR5x-8000\n支持 ECC\n否\n显卡功能\n显卡型号\nAMD Radeon™ 880M\n显卡核心数\n12\n显卡频率\n2900 MHz\nDirectX® 版本\n12\nDisplayPort™ 版本\n2.1\nDisplayPort 扩展功能\nAdaptive-Sync , HDR Metadata , UHBR10\nDisplayPort 最高刷新率 (SDR)\n7680x4320 @ 60Hz , 3840x2160 @ 240Hz , 3440x1440 @ 360Hz , 2560x1440 @ 480Hz , 1920x1080 @ 600Hz\nDisplayPort 最高刷新率 (HDR)\n7680x4320 @ 60Hz , 3840x2160 @ 240Hz , 3440x1440 @ 360Hz , 2560x1440 @ 480Hz , 1920x1080 @ 600Hz\nHDMI® 版本\n2.1\n支持的 HDCP 版本\n2.3\nUSB Type-C® DisplayPort™ 备用模式\n是\n支持多个显示器\n是\n显示器个数上限\n4\nAMD FreeSync™\n是\n无线显示\nMiracast\n最大视频编码带宽 (SDR)\n1080p630 8bpc H.264, 1440p373 8bpc H.264, 2160p175 8bpc H.264, 1080p630 8bpc H.265, 1440p373 8bpc H.265, 2160p175 8bpc H.265, 4320p43 8bpc H.265, 1080p864 8/10bpc AV1, 1440p513 8/10bpc AV1, 2160p240 8/10bpc AV1, 4320p60 8/10bpc AV1\n\n最大视频解码带宽\n1080p60 8bpc MPEG2, 1080p60 8bpc VC1, 1080p786 8/10bpc VP9, 2160p196 8/10bpc VP9, 4320p49 8/10bpc VP9, 1080p1200 8bpc H.264, 2160p300 8bpc H.264, 4320p75 8bpc H.264, 1080p786 8/10bpc H.265, 2160p196 8/10bpc H.265, 4320p49 8/10bpc H.265, 1080p960 8/10bpc\n\nAMD SmartShift MAX\n是\nAMD 显存智取技术\n支持\nAI 引擎性能\nAMD Ryzen™ AI\n支持\nOverall TOPS\n最高可达 73 TOPS\nNPU TOPS\n最高可达 50 TOPS\n产品 ID\nTray 产品 ID\n100-000001530 (FP8)\n安全\nAMD 增强病毒防护 (NX bit)\n是",
"publish_date": "",
"publish_date": "2022-01-01",
"views": 0,
"is_pinned": false,
"subcategory_id": "mobile"

View File

@@ -12,9 +12,9 @@
"fp16_tflops": 1979,
"int8_perf_tops": 3958,
"price_usd": 30000,
"release_year": 2022,
"description": "数据中心顶级GPU专为AI训练设计",
"subcategory_id": "datacenter"
"subcategory_id": "datacenter",
"publish_date": "2022-01-01"
},
{
"id": "a100",
@@ -29,9 +29,9 @@
"fp16_tflops": 312,
"int8_perf_tops": 624,
"price_usd": 10000,
"release_year": 2020,
"description": "数据中心主力GPUAI训练推理通用",
"subcategory_id": "datacenter"
"subcategory_id": "datacenter",
"publish_date": "2020-01-01"
},
{
"id": "a10040g",
@@ -46,9 +46,9 @@
"fp16_tflops": 312,
"int8_perf_tops": 624,
"price_usd": 6000,
"release_year": 2020,
"description": "A100 40GB版本性价比更高",
"subcategory_id": "datacenter"
"subcategory_id": "datacenter",
"publish_date": "2020-01-01"
},
{
"id": "l40s",
@@ -63,9 +63,9 @@
"fp16_tflops": 362,
"int8_perf_tops": 724,
"price_usd": 7000,
"release_year": 2023,
"description": "新一代数据中心GPU推理优化",
"subcategory_id": "datacenter"
"subcategory_id": "datacenter",
"publish_date": "2023-01-01"
},
{
"id": "rtx4090",
@@ -80,9 +80,9 @@
"fp16_tflops": 330,
"int8_perf_tops": 660,
"price_usd": 1600,
"release_year": 2022,
"description": "消费级最强GPU适合个人AI开发",
"subcategory_id": "gaming"
"subcategory_id": "gaming",
"publish_date": "2022-01-01"
},
{
"id": "rtx4090d",
@@ -97,9 +97,9 @@
"fp16_tflops": 294,
"int8_perf_tops": 588,
"price_usd": 1400,
"release_year": 2024,
"description": "4090中国特供版性能略降",
"subcategory_id": "gaming"
"subcategory_id": "gaming",
"publish_date": "2024-01-01"
},
{
"id": "rtx3090",
@@ -114,9 +114,9 @@
"fp16_tflops": 142,
"int8_perf_tops": 284,
"price_usd": 1200,
"release_year": 2020,
"description": "上一代旗舰,性价比高",
"subcategory_id": "gaming"
"subcategory_id": "gaming",
"publish_date": "2020-01-01"
},
{
"id": "rtx3080",
@@ -131,9 +131,9 @@
"fp16_tflops": 119,
"int8_perf_tops": 238,
"price_usd": 700,
"release_year": 2020,
"description": "中高端消费级GPU",
"subcategory_id": "gaming"
"subcategory_id": "gaming",
"publish_date": "2020-01-01"
},
{
"id": "v100",
@@ -148,9 +148,9 @@
"fp16_tflops": 118,
"int8_perf_tops": 236,
"price_usd": 4000,
"release_year": 2017,
"description": "上一代数据中心GPU仍有价值",
"subcategory_id": "datacenter"
"subcategory_id": "datacenter",
"publish_date": "2017-01-01"
},
{
"id": "mi300x",
@@ -165,9 +165,9 @@
"fp16_tflops": 1307,
"int8_perf_tops": 2614,
"price_usd": 15000,
"release_year": 2023,
"description": "AMD最强AI GPU192GB显存",
"subcategory_id": "datacenter"
"subcategory_id": "datacenter",
"publish_date": "2023-01-01"
},
{
"name": "RTX 6000D",
@@ -184,7 +184,8 @@
"updated_at": "2026-04-28 11:56:48",
"subcategory_id": "professional",
"views": 0,
"images": []
"images": [],
"publish_date": "2024-01-01"
},
{
"name": "RTX PRO 6000",
@@ -202,6 +203,7 @@
"manufacturer": "NVIDIA",
"subcategory_id": "professional",
"views": 0,
"images": []
"images": [],
"publish_date": "2020-01-01"
}
]

View File

@@ -10,7 +10,8 @@
"subcategory_id": "suv",
"views": 0,
"images": [],
"updated_at": "2026-04-28 12:32:13"
"updated_at": "2026-04-28 12:32:13",
"publish_date": "2021-01-01"
},
{
"name": "秦PLUS",
@@ -34,6 +35,7 @@
"created_at": "2026-04-11 02:03:45",
"visible": true,
"raw_text": "秦PLUS的外观设计极具现代感和运动气息前脸采用了家族化设计语言标志性的大尺寸进气格栅占据了前脸的大部分空间搭配锐利的LED大灯组营造出强烈的视觉冲击力。车身线条流畅腰线从车头贯穿至车尾增强了整车的运动感。车尾部分简洁大方的设计与前脸相呼应整体风格时尚而不失稳重。\n\n上海秦PLUS优惠促销最新报价5.98万!轻松开新车\n\n秦PLUS拥有4780*1837*1515mm的长宽高尺寸和2718mm的轴距赋予其宽敞的内部空间。车侧线条流畅且动感十足从前轮距1580mm到后轮距1590mm车轮布局合理增强了车辆的稳定性和操控性。配备的225/60 R16轮胎规格匹配独特风格的轮圈为车辆增添了一抹动感与时尚的气息。\n\n上海秦PLUS优惠促销最新报价5.98万!轻松开新车\n\n秦PLUS的内饰风格简洁大气给人以科技感和舒适感。中控台布局合理配备了10.1英寸的中控屏幕支持语音识别控制系统可轻松操作多媒体系统、导航、电话和空调等功能。方向盘采用皮质材料手感舒适支持手动上下和前后调节方便驾驶员调整到最佳驾驶姿势。座椅采用仿皮材质主驾驶座椅具备前后调节、靠背调节和高低调节功能而副驾驶座椅则支持前后调节和靠背调节确保了乘客的舒适度。后排座椅可以按比例放倒增加储物空间同时车内还配备了USB和Type-C接口方便乘客为电子设备充电。\n\n上海秦PLUS优惠促销最新报价5.98万!轻松开新车\n\n秦PLUS搭载了一台1.5L 101马力的L4发动机最大功率为74kW最大扭矩为126N·m。与之匹配的是E-CVT无级变速器这使得车辆在提供平稳的动力输出的同时还能有效降低油耗。\n\n汽车之家车主@天艺风云 表示外观设计是他当初选择秦PLUS的原因之一。他赞赏整体造型时尚大气龙脸设计搭配犀利的大灯辨识度极高。车身线条流畅溜背式造型增添了几分运动感。全新的“龙鳞辉熠”格栅精致又霸气每次停车都有人问这是什么车外观确实很吸引人。",
"subcategory_id": "sedan"
"subcategory_id": "sedan",
"publish_date": "2023-01-01"
}
]

View File

@@ -10,7 +10,7 @@
"visible": true,
"raw_text": "",
"images": [],
"publish_date": "",
"publish_date": "2023-01-01",
"views": 0,
"is_pinned": false,
"subcategory_id": "90ce312b560d",
@@ -27,7 +27,7 @@
"visible": true,
"raw_text": "",
"images": [],
"publish_date": "",
"publish_date": "2023-01-01",
"views": 0,
"is_pinned": false,
"subcategory_id": "90ce312b560d",
@@ -44,7 +44,7 @@
"visible": true,
"raw_text": "",
"images": [],
"publish_date": "",
"publish_date": "2023-01-01",
"views": 0,
"is_pinned": false,
"subcategory_id": "90ce312b560d",
@@ -95,7 +95,7 @@
"images": [
"/static/uploads/9703a1d16424_1777365365.png"
],
"publish_date": "",
"publish_date": "2022-01-01",
"views": 0,
"is_pinned": false
}

81
data/items_phones.json Normal file
View File

@@ -0,0 +1,81 @@
[
{
"name": "华为Pura X Max",
"brand": "华为",
"processor": "麒麟9030 Pro",
"screen_size": "7.6",
"year": 2026,
"description": "全球首款横向阔折叠屏手机内屏7.6英寸WQHD+分辨率外屏5.5英寸搭载麒麟9030 Pro芯片和鸿蒙6系统支持AI眼动翻页和手写笔功能素皮版重约210g",
"id": "5ffe89899549",
"category_id": "phones",
"created_at": "2026-04-28 18:20:59",
"visible": true,
"raw_text": "华为Pura X Max全球首款横向阔折叠屏手机内屏7.6英寸WQHD+分辨率外屏5.5英寸搭载麒麟9030 Pro芯片和鸿蒙6系统支持AI眼动翻页和手写笔功能素皮版重约210g2026年4月20日上市。\n华为 Pura X Max 是华为最新推出的大阔折叠屏手机官方起售价10999 元,提供多种存储版本及配色选择,已在华为商城等渠道正式开售 。更多详情可访问 [华为官网](https://consumer.huawei.com/cn/phones/pura-x-max/specs/) 或 [华为商城](https://item.vmall.com/product/comdetail/index.html?prdId=10086621059876&sbomCode=2601010615007) 。\n版本价格与发售信息\n\n1. 发售时间:于 2026 年 4 月 20 日正式发布4 月 25 日 10:08 正式开售 。\n2. 官方定价:\n - 12GB+256GB10999 元。\n - 12GB+512GB11999 元。\n - 16GB+512GB 典藏版12999 元。\n - 16GB+1TB 典藏版13999 元。\n3. 购买渠道:可通过华为官网及华为商城等官方渠道购买,部分第三方平台价格可能存在波动,建议以官方定价为准 。\n核心硬件配置\n\n1. 屏幕显示:\n - 内屏7.7 英寸折叠柔性 OLED支持 1-120Hz LTPO 2.0 自适应刷新率,分辨率 2584×1828 像素 。\n - 外屏5.4 英寸 OLED支持 1-120Hz LTPO 2.0 自适应刷新率,分辨率 1848×1264 像素 。\n - 亮度:外屏峰值亮度 3500 尼特,内屏峰值亮度 3000 尼特,户外强光下清晰可见 。\n2. 性能系统:\n - 处理器:搭载麒麟 9030 Pro 芯片,整机性能提升 30% 。\n - 操作系统:预装 HarmonyOS 6.1,支持多设备协同 。\n3. 影像系统:\n - 后置5000 万像素超光变主摄F1.4-F4.0+ 1250 万像素超广角 + 5000 万像素潜望长焦 + 第二代红枫原色摄像头 。\n - 前置:内外屏均配备 800 万像素摄像头,支持外屏自拍 。\n4. 续航充电:\n - 电池5300mAh 典型值,支持 66W 有线超级快充及 50W 无线超级快充 。\n折叠形态与 AI 体验\n\n1. 阔折叠设计:\n - 采用√2:1 黄金比例设计,内外屏比例一致,接近 A4 纸对折比例,提升阅读和办公体验 。\n - 机身重量约 229 克,折叠态厚度 11.2mm,展开态厚度 5.2mm,便携性较好 。\n2. AI 功能:\n - 支持小艺伴随式 AI、AI 灵感妙创、AI 眼动翻页等功能,提升交互效率 。\n - 首发支持华为 M-Pen 3 Mini 手写笔适配“天生会画”App支持动态照片手绘 。\n3. 配色材质:\n - 提供幻夜黑、橄榄金、星际蓝、活力橙、零度白 5 款配色 。\n - 外屏采用第二代昆仑玻璃,支持 IP58+IP59 级防尘防水,耐用性增强 。",
"images": [],
"subcategory_id": "",
"publish_date": "2026-01-01",
"views": 0,
"is_pinned": false,
"price": 10999,
"specs": {
"screen": {
"inner": {
"size": 7.7,
"type": "折叠柔性OLED",
"refreshRate": "1-120Hz LTPO 2.0自适应刷新率",
"resolution": "2584×1828像素",
"brightness": 3000
},
"outer": {
"size": 5.4,
"type": "OLED",
"refreshRate": "1-120Hz LTPO 2.0自适应刷新率",
"resolution": "1848×1264像素",
"brightness": 3500
}
},
"performance": {
"processor": "麒麟9030 Pro芯片",
"os": "HarmonyOS 6.1"
},
"memory": {
"ram": [
"12GB",
"16GB"
],
"storage": [
"256GB",
"512GB",
"1TB"
]
},
"camera": {
"rear": "5000万像素超光变主摄 + 1250万像素超广角 + 5000万像素潜望长焦 + 第二代红枫原色摄像头",
"front": "800万像素"
},
"battery": {
"capacity": 5300,
"charging": {
"wired": 66,
"wireless": 50
}
},
"design": {
"weight": 229,
"thickness": {
"folded": 11.2,
"unfolded": 5.2
},
"waterResistance": "IP58+IP59"
},
"colors": [
"幻夜黑",
"橄榄金",
"星际蓝",
"活力橙",
"零度白"
]
},
"updated_at": "2026-04-28 18:29:08"
}
]

View File

@@ -18,7 +18,8 @@
"raw_text": "\nGPT-4 Turbo version with 128K context length, price is $10 per 1M input tokens",
"subcategory_id": "chat",
"views": 0,
"images": []
"images": [],
"publish_date": "2023-03-14"
},
{
"id": "gpt4turbo",
@@ -35,7 +36,8 @@
"license": "Proprietary",
"description": "GPT-4增强版128K上下文",
"created_at": "2024-01-01",
"subcategory_id": "chat"
"subcategory_id": "chat",
"publish_date": "2023-11-06"
},
{
"id": "gpt35",
@@ -52,7 +54,8 @@
"license": "Proprietary",
"description": "性价比高的通用模型",
"created_at": "2024-01-01",
"subcategory_id": "chat"
"subcategory_id": "chat",
"publish_date": "2023-03-01"
},
{
"id": "claude3opus",
@@ -69,7 +72,8 @@
"license": "Proprietary",
"description": "Anthropic最强模型200K上下文",
"created_at": "2024-01-01",
"subcategory_id": "code"
"subcategory_id": "code",
"publish_date": "2024-03-04"
},
{
"id": "claude3sonnet",
@@ -86,7 +90,8 @@
"license": "Proprietary",
"description": "平衡性能与成本",
"created_at": "2024-01-01",
"subcategory_id": "chat"
"subcategory_id": "chat",
"publish_date": "2024-03-04"
},
{
"id": "llama270b",
@@ -103,7 +108,8 @@
"license": "Llama 2 Community",
"description": "Meta开源大模型70B参数",
"created_at": "2024-01-01",
"subcategory_id": "chat"
"subcategory_id": "chat",
"publish_date": "2023-07-18"
},
{
"id": "llama3",
@@ -120,7 +126,8 @@
"license": "Llama 3 Community",
"description": "Meta最新开源模型性能接近GPT-4",
"created_at": "2024-01-01",
"subcategory_id": "code"
"subcategory_id": "code",
"publish_date": "2024-04-18"
},
{
"id": "mistral7b",
@@ -137,7 +144,8 @@
"license": "Apache 2.0",
"description": "小巧高效的开源模型",
"created_at": "2024-01-01",
"subcategory_id": "chat"
"subcategory_id": "chat",
"publish_date": "2023-09-27"
},
{
"id": "mixtral8x7b",
@@ -154,7 +162,8 @@
"license": "Apache 2.0",
"description": "MoE架构高效推理",
"created_at": "2024-01-01",
"subcategory_id": "chat"
"subcategory_id": "chat",
"publish_date": "2023-12-11"
},
{
"id": "qwen72b",
@@ -171,7 +180,8 @@
"license": "Apache 2.0",
"description": "阿里开源大模型,中文能力强",
"created_at": "2024-01-01",
"subcategory_id": "chat"
"subcategory_id": "chat",
"publish_date": "2024-02-05"
},
{
"id": "deepseekv3",
@@ -188,7 +198,8 @@
"license": "MIT",
"description": "DeepSeek最新模型性价比极高",
"created_at": "2024-01-01",
"subcategory_id": "code"
"subcategory_id": "code",
"publish_date": "2024-12-26"
},
{
"id": "glm4",
@@ -206,6 +217,7 @@
"description": "智谱AI大模型中文能力强",
"created_at": "2024-01-01",
"visible": true,
"subcategory_id": "chat"
"subcategory_id": "chat",
"publish_date": "2024-01-01"
}
]

31359
logs/app.log

File diff suppressed because it is too large Load Diff

View File

@@ -273,9 +273,14 @@
<button onclick="closeModal()" class="text-gray-400 hover:text-gray-600"><i class="ri-close-line text-2xl"></i></button>
</div>
<div id="modalContent" class="p-6"></div>
<!-- 解析来源历史 -->
<div id="parseSourcesArea" class="hidden border-t mx-6 pt-4">
<h3 class="text-sm font-semibold text-gray-700 mb-2"><i class="ri-history-line mr-1"></i>解析来源记录</h3>
<div id="parseSourcesList" class="space-y-2 mb-4"></div>
</div>
<div class="p-6 border-t flex justify-end gap-4 sticky bottom-0 bg-white">
<button onclick="closeModal()" class="px-4 py-2 bg-gray-200 text-gray-600 rounded-lg hover:bg-gray-300">取消</button>
<button onclick="openSmartUpdateModal()" id="smartUpdateBtn" class="px-4 py-2 bg-orange-600 text-white rounded-lg hover:bg-orange-700 hidden"><i class="ri-magic-line mr-1"></i>智能补充</button>
<button onclick="openSmartUpdateModal()" id="smartUpdateBtn" class="px-4 py-2 bg-orange-600 text-white rounded-lg hover:bg-orange-700 hidden"><i class="ri-magic-line mr-1"></i>补充解析</button>
<button onclick="saveItem()" class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">保存</button>
</div>
</div>
@@ -285,7 +290,7 @@
<div id="smartAddModal" class="fixed inset-0 bg-black/50 z-50 hidden flex items-center justify-center">
<div class="bg-white rounded-xl max-w-4xl w-full mx-4 max-h-[90vh] overflow-auto">
<div class="p-6 border-b flex justify-between items-center sticky top-0 bg-white z-10">
<h2 class="text-xl font-bold text-gray-800"><i class="ri-magic-line mr-2 text-orange-600"></i>智能添加(根据参数字段解析)</h2>
<h2 class="text-xl font-bold text-gray-800"><i class="ri-magic-line mr-2 text-orange-600"></i>智能添加参数</h2>
<button onclick="closeSmartAddModal()" class="text-gray-400 hover:text-gray-600"><i class="ri-close-line text-2xl"></i></button>
</div>
<div class="p-6">
@@ -297,18 +302,22 @@
</select>
</div>
<div class="bg-orange-50 rounded-lg p-4 mb-4">
<p class="text-sm text-orange-700"><i class="ri-information-line mr-1"></i>上传<strong>产品参数截图</strong><strong>参数文本</strong>AI将根据类别字段配置自动解析参数。支持多次解析每次来源都会被记录。</p>
</div>
<div class="mb-6">
<p class="text-sm text-gray-500 mb-3">上传产品图片AI将根据类别参数字段配置自动识别并解析参数。支持一次上传多张图片可识别多个产品。</p>
<p class="text-sm text-gray-500 mb-3">上传参数截图规格表、参数页面等AI将识别并解析参数数据</p>
<div class="flex flex-wrap gap-3 mb-3" id="smartImagePreviewArea">
<!-- 图片预览区 -->
</div>
<div class="flex gap-3">
<input type="file" id="smartImageInput" accept="image/*" multiple class="hidden" onchange="handleSmartImageUpload(event)">
<button onclick="document.getElementById('smartImageInput').click()" class="px-4 py-2 bg-orange-100 text-orange-600 rounded-lg hover:bg-orange-200 text-sm">
<i class="ri-image-add-line mr-1"></i>选择图片(支持多选)
<i class="ri-image-add-line mr-1"></i>上传参数截图(支持多选)
</button>
<button onclick="pasteSmartImageFromClipboard()" class="px-4 py-2 bg-gray-100 text-gray-600 rounded-lg hover:bg-gray-200 text-sm">
<i class="ri-clipboard-line mr-1"></i>粘贴图
<i class="ri-clipboard-line mr-1"></i>粘贴
</button>
<button onclick="clearSmartImages()" class="px-4 py-2 bg-gray-100 text-gray-600 rounded-lg hover:bg-gray-200 text-sm">
<i class="ri-delete-bin-line mr-1"></i>清空图片
@@ -316,12 +325,12 @@
</div>
<div class="mt-3 text-xs text-gray-400">
<i class="ri-information-line mr-1"></i>
已选择 <span id="smartImageCount">0</span> 张图
已选择 <span id="smartImageCount">0</span>参数截
</div>
</div>
<div class="border-t pt-4">
<label class="text-sm text-gray-600 mb-2 block">补充文本(可选)</label>
<textarea id="smartAddText" rows="4" class="w-full p-4 border border-gray-200 rounded-lg focus:outline-none focus:border-orange-400 text-gray-700" placeholder="可粘贴补充信息文本,与图片一起解析..."></textarea>
<label class="text-sm text-gray-600 mb-2 block">参数文本(可选,可粘贴产品规格说明</label>
<textarea id="smartAddText" rows="4" class="w-full p-4 border border-gray-200 rounded-lg focus:outline-none focus:border-orange-400 text-gray-700" placeholder="可粘贴产品参数文本、规格说明等..."></textarea>
</div>
<div id="smartAddPreview" class="mt-4 hidden">
<h3 class="text-sm font-semibold text-gray-700 mb-2"><i class="ri-checkbox-circle-line text-green-600 mr-1"></i>解析结果预览:</h3>
@@ -408,25 +417,25 @@
<div id="smartUpdateModal" class="fixed inset-0 bg-black/50 z-50 hidden flex items-center justify-center">
<div class="bg-white rounded-xl max-w-4xl w-full mx-4 max-h-[90vh] overflow-auto">
<div class="p-6 border-b flex justify-between items-center sticky top-0 bg-white z-10">
<h2 class="text-xl font-bold text-gray-800"><i class="ri-magic-line mr-2 text-orange-600"></i>智能补充参数</h2>
<h2 class="text-xl font-bold text-gray-800"><i class="ri-magic-line mr-2 text-orange-600"></i>补充解析参数</h2>
<button onclick="closeSmartUpdateModal()" class="text-gray-400 hover:text-gray-600"><i class="ri-close-line text-2xl"></i></button>
</div>
<div class="p-6">
<div class="bg-blue-50 rounded-lg p-4 mb-4">
<p class="text-sm text-blue-700"><i class="ri-information-line mr-1"></i>上传图片或输入文本AI将识别参数并补充到现有数据中。只会填充缺失的字段,不会覆盖已有</p>
<p class="text-sm text-blue-700"><i class="ri-information-line mr-1"></i>上传<strong>参数截图</strong><strong>参数文本</strong>AI将识别并补充缺失的参数字段。只会填充空白字段,不会覆盖已有数据</p>
</div>
<div class="mb-6">
<p class="text-sm text-gray-500 mb-3">上传产品图片AI将自动识别并解析参数</p>
<p class="text-sm text-gray-500 mb-3">上传产品参数截图(规格表、参数页面等)AI将识别并解析参数数据</p>
<div class="flex flex-wrap gap-3 mb-3" id="smartUpdateImagePreviewArea">
<!-- 图片预览区 -->
</div>
<div class="flex gap-3">
<input type="file" id="smartUpdateImageInput" accept="image/*" multiple class="hidden" onchange="handleSmartUpdateImageUpload(event)">
<button onclick="document.getElementById('smartUpdateImageInput').click()" class="px-4 py-2 bg-orange-100 text-orange-600 rounded-lg hover:bg-orange-200 text-sm">
<i class="ri-image-add-line mr-1"></i>选择图片(支持多选)
<i class="ri-image-add-line mr-1"></i>上传参数截图
</button>
<button onclick="pasteSmartUpdateImageFromClipboard()" class="px-4 py-2 bg-gray-100 text-gray-600 rounded-lg hover:bg-gray-200 text-sm">
<i class="ri-clipboard-line mr-1"></i>粘贴图
<i class="ri-clipboard-line mr-1"></i>粘贴
</button>
<button onclick="clearSmartUpdateImages()" class="px-4 py-2 bg-gray-100 text-gray-600 rounded-lg hover:bg-gray-200 text-sm">
<i class="ri-delete-bin-line mr-1"></i>清空图片
@@ -434,12 +443,12 @@
</div>
<div class="mt-3 text-xs text-gray-400">
<i class="ri-information-line mr-1"></i>
已选择 <span id="smartUpdateImageCount">0</span> 张图
已选择 <span id="smartUpdateImageCount">0</span>参数截
</div>
</div>
<div class="border-t pt-4">
<label class="text-sm text-gray-600 mb-2 block">补充文本(可选)</label>
<textarea id="smartUpdateText" rows="4" class="w-full p-4 border border-gray-200 rounded-lg focus:outline-none focus:border-orange-400 text-gray-700" placeholder="可粘贴补充信息文本,如产品规格表、参数说明等..."></textarea>
<label class="text-sm text-gray-600 mb-2 block">参数文本(可选)</label>
<textarea id="smartUpdateText" rows="4" class="w-full p-4 border border-gray-200 rounded-lg focus:outline-none focus:border-orange-400 text-gray-700" placeholder="可粘贴产品参数文本、规格说明等..."></textarea>
</div>
<div id="smartUpdatePreview" class="mt-4 hidden">
<h3 class="text-sm font-semibold text-gray-700 mb-2"><i class="ri-checkbox-circle-line text-green-600 mr-1"></i>解析结果:</h3>
@@ -1192,6 +1201,7 @@
const forms = {category: getCategoryForm, model: getModelForm, gpu: getGpuForm, cpu: getCpuForm, knowledge: getKnowledgeForm};
document.getElementById('modalContent').innerHTML = forms[type](currentData);
showSmartUpdateButton(); // 显示智能补充按钮
showParseSources(currentData); // 显示解析来源历史
document.getElementById('editModal').classList.remove('hidden');
}
@@ -1204,8 +1214,51 @@
document.getElementById('modalTitle').textContent = '编辑数据';
document.getElementById('modalContent').innerHTML = getDynamicForm(currentData);
showSmartUpdateButton(); // 显示智能补充按钮
showParseSources(currentData); // 显示解析来源历史
document.getElementById('editModal').classList.remove('hidden');
}
// 显示解析来源历史
function showParseSources(data) {
const sources = data.parse_sources || [];
const area = document.getElementById('parseSourcesArea');
const list = document.getElementById('parseSourcesList');
if (sources.length === 0) {
area.classList.add('hidden');
return;
}
area.classList.remove('hidden');
list.innerHTML = sources.map((source, idx) => {
const typeLabel = source.type === 'smart_add' ? '智能添加' : '补充解析';
const time = source.timestamp || '未知时间';
const updatedFields = source.updated_fields || [];
let contentHtml = '';
if (source.images && source.images.length > 0) {
contentHtml += `<div class="flex gap-2 mb-2">${source.images.map(img =>
`<img src="${img}" class="w-20 h-20 object-cover rounded border cursor-pointer hover:scale-105 transition" onclick="window.open('${img}', '_blank')">`
).join('')}</div>`;
}
if (source.text) {
contentHtml += `<div class="text-xs text-gray-500 bg-gray-50 p-2 rounded max-h-20 overflow-auto">${source.text}</div>`;
}
if (updatedFields.length > 0) {
contentHtml += `<div class="text-xs text-green-600 mt-1">补充字段: ${updatedFields.join(', ')}</div>`;
}
return `
<div class="bg-gray-50 rounded-lg p-3">
<div class="flex justify-between items-center mb-2">
<span class="text-sm font-medium text-gray-700">#${idx + 1} ${typeLabel}</span>
<span class="text-xs text-gray-400">${time}</span>
</div>
${contentHtml}
</div>
`;
}).join('');
}
// 删除项
async function deleteItem(type, id) {
@@ -2192,7 +2245,6 @@
text: text,
images: smartAddImages,
subcategory_id: subcategoryId
images: smartAddImages
})
});