修复定位的回调问题
This commit is contained in:
@@ -34,6 +34,10 @@ public final class SubGameViewController: UIViewController {
|
||||
// MARK: - UI
|
||||
|
||||
private let bridgedWebView = BridgedWebView(label: "subGame")
|
||||
|
||||
/// 子游戏私有的定位服务(msext gameController.m:1230 `configLocationManager`
|
||||
/// 每次进子游戏都 alloc 一个自己的 AMapLocationManager)。随本 VC 一起析构。
|
||||
private let locationService = LocationService(owner: "subGame")
|
||||
private let splash = SplashOverlay()
|
||||
|
||||
// MARK: - Handlers
|
||||
@@ -88,7 +92,7 @@ public final class SubGameViewController: UIViewController {
|
||||
DeviceInfoHandler.register(on: bridge)
|
||||
BrowserHandler.register(on: bridge)
|
||||
OpenSaomaHandler.register(on: bridge)
|
||||
StartLocationHandler.register(on: bridge, label: "subGame")
|
||||
StartLocationHandler.register(on: bridge, label: "subGame", location: locationService)
|
||||
|
||||
// assetsRoot 闭包 = 子游戏 H5 根目录(msext gameController.m:364 等价)。
|
||||
// 用 closure 是因为 effectiveGameDir 在 boot pipeline 升级路径下会变化,
|
||||
@@ -118,7 +122,7 @@ public final class SubGameViewController: UIViewController {
|
||||
OpenurlTitleDataHandler.register(on: bridge)
|
||||
|
||||
// 子游戏专属:backgameData(退出回大厅 + 反向 callback getWebdata)
|
||||
BackGameDataHandler.register(on: bridge)
|
||||
BackGameDataHandler.register(on: bridge, location: locationService)
|
||||
|
||||
// 视频房间 3 件套 stub(业务暂未启用,仅维持桥契约不让 H5 报 "no handler")
|
||||
// 未来接 Agora 时把 VideoRoomHandlers 内 3 个 stub 展开实现,注册点不变。
|
||||
|
||||
Reference in New Issue
Block a user