From 910e88b92778ae78f0444f5c6f6202668c3110f6 Mon Sep 17 00:00:00 2001 From: 无故事王国 <841720330@qq.com> Date: 星期一, 24 六月 2024 14:33:59 +0800 Subject: [PATCH] fix --- DolphinEnglishLearnStudent/SceneDelegate.swift | 24 ++++++++++++++++++++---- 1 files changed, 20 insertions(+), 4 deletions(-) diff --git a/DolphinEnglishLearnStudent/SceneDelegate.swift b/DolphinEnglishLearnStudent/SceneDelegate.swift index ec8d9ae..584e611 100644 --- a/DolphinEnglishLearnStudent/SceneDelegate.swift +++ b/DolphinEnglishLearnStudent/SceneDelegate.swift @@ -31,10 +31,6 @@ needLogin();return } loginSuccess() - - if WXApi.isWXAppInstalled(){ - WeChatTools.sendAuthRequest() - } } func sceneDidDisconnect(_ scene: UIScene) { @@ -64,6 +60,26 @@ // Use this method to save data, release shared resources, and store enough scene-specific state information // to restore the scene back to its current state. } + + func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) { + + + } + + func scene(_ scene: UIScene, continue userActivity: NSUserActivity) { + WXApi.handleOpenUniversalLink(userActivity, delegate: self) + } + +} + +extension SceneDelegate:WXApiDelegate{ + func onReq(_ req: BaseReq) { + + } + + func onResp(_ resp: BaseResp) { + + } } extension SceneDelegate{ -- Gitblit v1.7.1