修复定位的回调问题
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
//
|
||||
// ✅ Phase 4.E 微信:新版 SDK(2.x)无 static delegate API,逐次调用 handleOpenURL/sendAuthReq
|
||||
// 时传入并被 SDK 弱引用;WeChatManager singleton 长生命周期,子游戏 pop 不析构,无需清理
|
||||
// ✅ Phase 5 高德定位:`LocationService.shared.stop()`(已加,canImport 守卫,
|
||||
// ✅ Phase 5 高德定位:`location.stop()`(子游戏私有实例,canImport 守卫,
|
||||
// Xcode Embed AMapLocationKit 后激活)
|
||||
// ⏳ Phase 3.B/C/D 录音 / 七牛上传:`AudioRecorder.shared.cancel()` 待 opencore-amr
|
||||
// 接入后取消注释;`QiniuUploader.cancelInFlight()` 依赖 Task.cancel 传播无需显式调
|
||||
@@ -34,7 +34,9 @@ import Foundation
|
||||
|
||||
public enum BackGameDataHandler {
|
||||
|
||||
public static func register(on bridge: any BridgeProtocol) {
|
||||
/// - Parameter location: **子游戏自己的** LocationService(msext cleanUpAction
|
||||
/// 只停 gameController 那一个 manager,不影响大厅)。
|
||||
public static func register(on bridge: any BridgeProtocol, location: LocationService) {
|
||||
// 【18】backgameData
|
||||
// 入参 data(字符串,子游戏 H5 自定义透传给大厅 getWebdata)
|
||||
// cb: "backgameData"
|
||||
@@ -57,7 +59,7 @@ public enum BackGameDataHandler {
|
||||
|
||||
#if canImport(AMapLocationKit)
|
||||
// msext gameController.m:2473-2478 cleanUpAction 等价
|
||||
LocationService.shared.stop(caller: "backgameData")
|
||||
location.stop(caller: "backgameData")
|
||||
#endif
|
||||
|
||||
// Phase 3.C 录音 / Phase 3.B 七牛上传 清理(QiniuUploader.cancelInFlight 当前
|
||||
|
||||
Reference in New Issue
Block a user