feat: 支持本地/云托管双模式切换,添加测试用户2-19

This commit is contained in:
2026-03-11 10:07:07 +08:00
parent 2b941cc4e0
commit 906b5649f7
3 changed files with 109 additions and 9 deletions

View File

@@ -38,6 +38,14 @@ export default class Main {
this.showLoading('正在加载...');
console.log('[Main] 开始初始化...');
// 初始化云环境
console.log('[Main] 初始化云环境...');
wx.cloud.init({
env: 'prod-4gc9i2da1c70fc52', // 云环境ID需替换为实际值
traceUser: true
});
console.log('[Main] 云环境初始化完成');
// 用户初始化(失败不阻塞)
console.log('[Main] 初始化用户...');
await this.userManager.init().catch(e => {