diff --git a/public-api.js b/public-api.js index 88d7106..5310cef 100644 --- a/public-api.js +++ b/public-api.js @@ -609,7 +609,10 @@ function toPublic(p, templates = [], packSpecs = [], slugMap = null) { if (sp && sp.per && sp.gw) out.pack = { per: sp.per, nw: sp.nw || '', gw: sp.gw, l: sp.l, w: sp.w, h: sp.h }; } // 卖点:英文、每行一条(含中文的行不对外) - out._points = String(p.sellingPoints || '').split('\n').map((l) => l.trim()).filter((l) => l && !/[\u4e00-\u9fff]/.test(l)); // 没填额定功率时,单位单独出现没有意义 + // 对客卖点:产品自己没填时,用所在模板的(模板管理里填) + const ownPts = String(p.sellingPoints || '').trim(); + const tplPts = ownPts ? '' : (templatesOf(p, templates).map((t) => String(t.sellingPoints || '').trim()).find(Boolean) || ''); + out._points = String(ownPts || tplPts).split('\n').map((l) => l.trim()).filter((l) => l && !/[\u4e00-\u9fff]/.test(l)); // 没填额定功率时,单位单独出现没有意义 if (out.youtube) out.youtube = youtubeId(out.youtube); const base = conf('PUBLIC_BASE_URL'); // 主图:产品自己的网站主图在前,主图模板的图片接在后面,最多 6 张;