为所有4个Panel添加了生命周期管理

SDKManager改用协程确保依赖安全
This commit is contained in:
2026-04-14 02:31:51 +08:00
parent 2ef540c7e5
commit e3842d05da
8 changed files with 125 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
# 2026-04-14 工作日志
## SDK代码质量修复
### 完成项
1. **事件监听内存泄漏修复** - 为所有Panel添加OnDisable/OnDestroy中的监听器移除逻辑
- LoginPanel.cs
- RegisterPanel.cs
- ChangePasswordPanel.cs
- RealNameAuthPanel.cs
2. **单例初始化时序问题修复** - SDKManager改用协程确保SDKUIManager先初始化
- SDKManager.cs:Start() 改用 AutoRegisterPanelsCoroutine() 协程
- 添加最多10帧的等待和重试逻辑
### 待办
- P0: 移除敏感数据日志 (LoginPanel:473, RealNameAuthPanel:56)
- P1: 添加网络请求封装
- P2: 建立测试框架