修复讲解详情接口并展示展厅统计
This commit is contained in:
@@ -294,17 +294,14 @@ export const toBackendGuideStop = (source: BackendGuideStop): ExplainGuideStop |
|
||||
const id = stringifyId(source.id)
|
||||
if (!id) return null
|
||||
|
||||
const targetType = normalizeAudioTargetType(source.targetType) || 'STOP'
|
||||
const targetId = stringifyId(source.targetId) || id
|
||||
|
||||
return {
|
||||
id,
|
||||
name: firstText(source.name, `讲解点${id}`),
|
||||
hallId: stringifyId(source.hallId) || undefined,
|
||||
hallName: firstText(source.hallName) || undefined,
|
||||
floorId: stringifyId(source.floorId) || undefined,
|
||||
targetType,
|
||||
targetId,
|
||||
targetType: 'STOP',
|
||||
targetId: id,
|
||||
coverImageUrl: normalizeSameOriginPublicUrl(firstText(source.coverImageUrl)) || undefined,
|
||||
description: firstText(source.description) || undefined,
|
||||
hasAudio: source.hasAudio === true,
|
||||
|
||||
Reference in New Issue
Block a user