完善后端联调链路与模拟器多通道支持

This commit is contained in:
2026-04-01 18:48:59 +08:00
parent 94a1f0ba78
commit a70dc8d5d0
51 changed files with 4037 additions and 197 deletions

View File

@@ -1,9 +1,16 @@
import { loadBackendAuthTokens, loadBackendBaseUrl } from './utils/backendAuth'
// app.ts
App<IAppOption>({
globalData: {
telemetryPlayerProfile: null,
backendBaseUrl: null,
backendAuthTokens: null,
},
onLaunch() {
this.globalData.backendBaseUrl = loadBackendBaseUrl()
this.globalData.backendAuthTokens = loadBackendAuthTokens()
// 展示本地存储能力
const logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())