修复合作获客扫码绑定崩溃与 Toast 层级,并接入分成比例修改。
将扫码页提升到列表层弹出并补齐 AppDelegate.window,避免扫码时 UIKit 取主窗口崩溃;Toast 改用独立 UIWindow 显示在 sheet 之上;合作获客员支持短信验证修改分成比例,同时优化冷启动根视图创建时机并补充相关测试。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -29,20 +29,20 @@ final class WeChatManager: NSObject {
|
||||
return
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
WXApi.startLog(by: WXLogLevel.detail) { log in
|
||||
print("WeChatSDK: \(log)")
|
||||
}
|
||||
#endif
|
||||
// #if DEBUG
|
||||
// WXApi.startLog(by: WXLogLevel.detail) { log in
|
||||
// print("WeChatSDK: \(log)")
|
||||
// }
|
||||
// #endif
|
||||
|
||||
let success = WXApi.registerApp(WeChatConfig.appID, universalLink: WeChatConfig.universalLink)
|
||||
isRegistered = success
|
||||
|
||||
#if DEBUG
|
||||
if success {
|
||||
checkUniversalLinkReady()
|
||||
}
|
||||
#endif
|
||||
// #if DEBUG
|
||||
// if success {
|
||||
// checkUniversalLinkReady()
|
||||
// }
|
||||
// #endif
|
||||
}
|
||||
|
||||
/// 处理 URL Scheme 回调。
|
||||
|
||||
Reference in New Issue
Block a user