修复讲解详情接口并展示展厅统计
This commit is contained in:
@@ -185,11 +185,15 @@ onLoad(async (options: any = {}) => {
|
||||
if (!exhibitId) return
|
||||
|
||||
const rawTargetType = Array.isArray(options.targetType) ? options.targetType[0] : options.targetType
|
||||
const targetType: AudioPlayTargetType | undefined = rawTargetType === 'ITEM' || rawTargetType === 'STOP'
|
||||
? rawTargetType
|
||||
: undefined
|
||||
const targetType: AudioPlayTargetType | undefined = rawTargetType === 'ITEM'
|
||||
? 'ITEM'
|
||||
: rawTargetType === 'STOP' || rawTargetType === 'GUIDE_STOP'
|
||||
? 'STOP'
|
||||
: undefined
|
||||
const rawTargetId = Array.isArray(options.targetId) ? options.targetId[0] : options.targetId
|
||||
const targetId = rawTargetId ? String(rawTargetId) : undefined
|
||||
const targetId = rawTargetType === 'GUIDE_STOP'
|
||||
? String(exhibitId)
|
||||
: rawTargetId ? String(rawTargetId) : undefined
|
||||
|
||||
try {
|
||||
const exhibitData = await explainUseCase.enterExplainDetail({
|
||||
|
||||
Reference in New Issue
Block a user