停用 stop/info 旧接口,统一详情入参为 stopId
Some checks failed
CI / verify (push) Has been cancelled

- 详情页路由入参统一为 stopId,废弃 targetType/targetId
- ExplainDetailEntryRequest 与 GlobalAudioSource 移除 targetType/targetId 字段
- 播放器源匹配仅按 stopId 判定,移除 targetType 兜底
- 删除 explainDetailTarget 死代码
- 清理 guideStopInfoAdapter 中 stop/info、play-info、text-info 旧契约类型与转换函数
- 补充测试服务器 Nginx SSL 部署手册
- 同步更新单测与 e2e 用例

Made-with: Proma
This commit is contained in:
lyf
2026-09-17 11:30:32 +08:00
parent bb6be9a04f
commit 337446f33c
10 changed files with 1173 additions and 385 deletions

View File

@@ -1,5 +1,4 @@
import type {
AudioPlayTargetType,
ExplainBusinessUnit,
ExplainGuideStop,
ExplainGuideStopPage,
@@ -43,8 +42,6 @@ export interface ExplainAudioSelection {
export interface ExplainDetailEntryRequest {
exhibitId: string
stopId?: string
targetType?: AudioPlayTargetType
targetId?: string
lang?: AudioLanguage
version?: GuideAudioVersion
// Navigation context is non-authoritative and keeps deep links independent of catalog loading.
@@ -99,7 +96,7 @@ export class ExplainUseCase {
}
private resolveDetailStopId(request: ExplainDetailEntryRequest) {
return String(request.stopId || request.targetId || request.exhibitId || '').trim()
return String(request.stopId || request.exhibitId || '').trim()
}
private async resolveStaticDetailFallback(