完善活动运营域与联调标准化

This commit is contained in:
2026-04-03 13:11:41 +08:00
parent 0e28f70bad
commit 129ea935db
56 changed files with 11004 additions and 196 deletions

View File

@@ -809,6 +809,25 @@ function buildEmptyResultSceneSnapshot(): MapEngineResultSnapshot {
}
}
function buildRuntimeSummaryRows(envelope: GameLaunchEnvelope): MapEngineGameInfoRow[] {
const runtime = envelope.runtime
const variantName = envelope.variant ? (envelope.variant.variantName || envelope.variant.variantId || null) : null
const variantRouteCode = envelope.variant ? (envelope.variant.routeCode || null) : null
if (!runtime) {
return []
}
const rows: MapEngineGameInfoRow[] = []
rows.push({ label: '运行绑定', value: runtime.runtimeBindingId || '--' })
rows.push({ label: '地点', value: runtime.placeName || runtime.placeId || '--' })
rows.push({ label: '地图', value: runtime.mapName || runtime.mapId || '--' })
rows.push({ label: '赛道集', value: runtime.courseSetId || '--' })
rows.push({ label: '赛道版本', value: runtime.courseVariantId || variantName || '--' })
rows.push({ label: 'RouteCode', value: runtime.routeCode || variantRouteCode || '--' })
rows.push({ label: '瓦片版本', value: runtime.tileReleaseId || '--' })
return rows
}
Page({
data: {
showDebugPanel: false,
@@ -1640,6 +1659,7 @@ Page({
const app = getApp<IAppOption>()
if (app.globalData) {
app.globalData.pendingResultSnapshot = snapshot
app.globalData.pendingResultLaunchEnvelope = currentGameLaunchEnvelope
}
},
@@ -2422,6 +2442,7 @@ Page({
const snapshot = mapEngine.getGameInfoSnapshot()
const localRows = snapshot.localRows.concat([
...buildRuntimeSummaryRows(currentGameLaunchEnvelope),
{ label: '比例尺开关', value: this.data.showCenterScaleRuler ? '开启' : '关闭' },
{ label: '比例尺锚点', value: this.data.centerScaleRulerAnchorMode === 'compass-center' ? '指北针圆心' : '屏幕中心' },
{ label: '按钮习惯', value: this.data.sideButtonPlacement === 'right' ? '右手' : '左手' },
@@ -2450,7 +2471,7 @@ Page({
resultSceneSubtitle: snapshot.subtitle,
resultSceneHeroLabel: snapshot.heroLabel,
resultSceneHeroValue: snapshot.heroValue,
resultSceneRows: snapshot.rows,
resultSceneRows: snapshot.rows.concat(buildRuntimeSummaryRows(currentGameLaunchEnvelope)),
})
},