Browse Source

chore: hide upstream provider naming

gangvy 1 month ago
parent
commit
8bea6518f1

+ 3 - 3
README.md

@@ -92,7 +92,7 @@ E:\xwechat_files\wxid_ay08t6ugo2h922_df4f\msg\file\2026-07\德玛仕产品及竟
 禁止将以下内容写入浏览器代码或 Git:
 
 - Fmode API Key
-- JustOneAPI token
+- supplier API token
 - Parse master key
 - PostgreSQL 连接串
 
@@ -142,7 +142,7 @@ npm run import:demashi -- "E:\xwechat_files\wxid_ay08t6ugo2h922_df4f\msg\file\20
 ## 尚未完成
 
 - 创建独立 PostgreSQL 数据库和独立 Parse 应用
-- 验证 JustOneAPI 京东商品详情、评论接口和真实字段契约
+- 验证公司电商数据中转的京东商品详情、评论接口和真实字段契约
 - 将商品、日指标、竞品关系和评论幂等写入新 Parse 应用
 - 将前端主数据源从静态 JSON 切换为新 Parse 应用
 - 部署独立环境并完成端到端验收
@@ -156,6 +156,6 @@ npm run import:demashi -- "E:\xwechat_files\wxid_ay08t6ugo2h922_df4f\msg\file\20
 
 - 原 Amazon、Sorftime、SP-API 和跨境订单链路
 - 直接复用原跨境线上数据库
-- 浏览器直接持有 Fmode 或 JustOneAPI 密钥
+- 浏览器直接持有 Fmode 或供应商密钥
 - 在没有评论正文时生成虚假 VOC 分析
 - 首版多租户计费、复杂权限、定时全量采集和 AI 自动报告

+ 3 - 3
TASKS.md

@@ -41,7 +41,7 @@
 - [ ] 恢复或确认 Fmode 生产 TLS 入口可用
 - [ ] 用德玛仕京东商品 `11266507445` 验证商品详情接口
 - [ ] 用同一商品验证评论列表接口和分页字段
-- [ ] 固化 JustOneAPI 响应到国内领域模型的字段映射
+- [ ] 固化公司电商数据中转响应到国内领域模型的字段映射
 - [ ] 实现商品、日指标、竞品关系和评论的幂等导入
 - [ ] 将前端读取切到独立 Parse 应用,并保留明确的本地案例模式
 - [ ] 部署独立前后端环境并跑一次端到端验收
@@ -52,7 +52,7 @@
 - [ ] 输入一个国内平台商品 ID 后能获取并保存商品与评论
 - [ ] 选择商品后 VOC 页面展示真实评论统计,或显示可解释的真实空状态
 - [ ] 失败请求不写入脏数据,不伪造分析结果
-- [ ] 浏览器和 Git 中不存在 Fmode、JustOneAPI、Parse master key 或数据库密码
+- [ ] 浏览器和 Git 中不存在 Fmode、供应商、Parse master key 或数据库密码
 - [ ] `npm run build`、`npm test`、`npm run verify:data` 全部通过
 
 ## 后续 P1
@@ -66,6 +66,6 @@
 
 ## 当前外部阻塞
 
-- Fmode 生产入口 TLS 握手在本机测试时被连接端重置,尚未完成真实 JustOneAPI 字段验证。
+- Fmode 生产入口 TLS 握手在本机测试时被连接端重置,尚未完成真实公司中转字段验证。
 - 德玛仕 Excel 不包含评论正文,当前评论样本数为 0。
 - 独立 PostgreSQL / Parse 的连接信息尚未提供或创建。

+ 1 - 1
docs/TASKS.md

@@ -13,7 +13,7 @@ Updated: 2026-07-22
 
 - [ ] Provision a dedicated PostgreSQL database.
 - [ ] Deploy a dedicated Parse application against the new database.
-- [ ] Remove the default JustOneAPI token from `voc-e-commerce` source and rotate it.
+- [ ] Remove any default supplier token from `voc-e-commerce` source and rotate it.
 - [ ] Restore the TLS entry for `server.fmode.cn:443`.
 - [ ] Validate the real JD product-detail and review endpoint contracts.
 - [ ] Persist normalized products, metrics, relations, and reviews to Parse.

+ 1 - 1
infra/schema.md

@@ -13,7 +13,7 @@ Unique key: `productKey`.
 - `role`: `own` or `competitor`
 - `brand`, `title`, `model`
 - `category1`, `category2`, `category3`
-- `source`: `excel` or `justone`
+- `source`: `excel` or `fmode_gateway`
 - `rawData`: optional upstream payload
 
 ## ProductMetricDaily

+ 1 - 1
src/modules/shared/services/voc-deep-insight-data.service.ts

@@ -116,7 +116,7 @@ export class VocDeepInsightDataService {
           content: review.content,
           ReviewsContent: review.content,
           reviewDate: review.reviewDate || '',
-          source: 'justone',
+          source: 'fmode_gateway',
         }))),
       catchError(() => of([])),
       shareReplay(1),

+ 1 - 1
src/modules/shared/services/voc-insight-data.service.ts

@@ -246,7 +246,7 @@ export class VocInsightDataService {
         rating: review.rating,
         content: review.content,
         date: review.reviewDate || '',
-        source: 'justone',
+        source: 'fmode_gateway',
       }))),
       catchError(() => of([])),
     );

+ 1 - 1
src/modules/voc-insight/pages/voice-classification.component.ts

@@ -1198,7 +1198,7 @@ export class VocVoiceClassificationComponent implements OnInit, OnDestroy {
 
   get voiceAiOneLineDiagnosis(): string {
     if (!this.data) return '';
-    if (!this.data.summary.totalReviews) return '暂无评论样本,等待 JustOneAPI 评论接入后生成声音诊断。';
+    if (!this.data.summary.totalReviews) return '暂无评论样本,等待公司电商数据服务接入评论后生成声音诊断。';
     const score = this.data.summary.overallSentimentScore;
     const topPos = this.data.positive.topKeywords.slice(0, 2).join(' / ') || '正向卖点';
     const topNeg = this.data.negative.items.slice(0, 2).map(i => i.text).join(' / ') || '负向痛点';