Update public-api.js via upload script - 2026-10-26 15:03:06

This commit is contained in:
mike 2026-10-26 15:03:05 +08:00
parent 1cb91585f1
commit 81dc3f196a
1 changed files with 6 additions and 1 deletions

View File

@ -77,6 +77,11 @@ const FIELDS = {
outputPowerFactor: 'outputPowerFactor',
parallelUnits: 'parallelUnits',
overload: 'overload',
// —— 模块化 UPS 的功率模块 ——
upsModuleCapacity: 'upsModuleCapacity',
upsModuleCount: 'upsModuleCount',
upsModuleDimensions: 'upsModuleDimensions',
upsModuleWeight: 'upsModuleWeight',
sockets: 'webSockets', // 网站展示的默认插座配置 [{ type: 'SCHUKO'|'NEMA'|'UK'|'UNIVERSAL'|'IEC'|'AU', count }]
};
const PUBLISH_FLAG = 'publishToWeb'; // 新增:"发布到网站"开关
@ -243,7 +248,7 @@ async function translateTemplateHtml(ai, products) {
// ===== 网站产品介绍:没手动填英文介绍的产品,由 AI 根据参数自动写一段 =====
// 参数变了会重新生成(缓存按参数内容算);手动填了英文介绍就一直用手动的。
const TYPE_EN = { '迷你UPS': 'Mini DC UPS', '离线式UPS': 'Offline UPS', '离线式锂电UPS': 'Lithium-ion offline UPS', '在线互动式UPS': 'Line-interactive UPS', '机架式UPS': 'Rack-mount online double-conversion UPS', '机架式锂电UPS': 'Lithium-ion rack-mount online double-conversion UPS' };
const TYPE_EN = { '迷你UPS': 'Mini DC UPS', '离线式UPS': 'Offline UPS', '离线式锂电UPS': 'Lithium-ion offline UPS', '在线互动式UPS': 'Line-interactive UPS', '机架式UPS': 'Rack-mount online double-conversion UPS', '机架式锂电UPS': 'Lithium-ion rack-mount online double-conversion UPS', '模块化UPS': 'Modular online UPS with hot-swappable power modules' };
const DESC_SKIP = new Set(['model', 'brand', 'category', 'type', 'machineVariant', 'description', 'sale', 'youtube', 'sellingPoints', 'sockets', 'extraSpecs', 'pack']);
const SOCKET_EN = { SCHUKO: 'Schuko', NEMA: 'NEMA 5-15', UK: 'BS 1363 (UK)', UNIVERSAL: 'universal', IEC: 'IEC C13', AU: 'Type I (AU/CN)' };
function descFacts(p) {