From 910e88b92778ae78f0444f5c6f6202668c3110f6 Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期一, 24 六月 2024 14:33:59 +0800
Subject: [PATCH] fix

---
 DolphinEnglishLearnStudent/AppDelegate.swift |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/DolphinEnglishLearnStudent/AppDelegate.swift b/DolphinEnglishLearnStudent/AppDelegate.swift
index d48dab1..2c05047 100644
--- a/DolphinEnglishLearnStudent/AppDelegate.swift
+++ b/DolphinEnglishLearnStudent/AppDelegate.swift
@@ -15,6 +15,10 @@
 
 				func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
 								// Override point for customization after application launch.
+
+								if WXApi.isWXAppInstalled(){
+												WXApi.registerApp(WeChatAPPID, universalLink: "https://dollearn/app/")
+								}
 								return true
 				}
 
@@ -32,6 +36,22 @@
 								// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
 				}
 
+				func application(_ application: UIApplication, handleOpen url: URL) -> Bool {
+								return WXApi.handleOpen(url, delegate: self)
+				}
 
+				func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
+								return WXApi.handleOpen(url, delegate: self)
+				}
+}
+
+extension AppDelegate:WXApiDelegate{
+				func onReq(_ req: BaseReq) {
+
+				}
+
+				func onResp(_ resp: BaseResp) {
+
+				}
 }
 

--
Gitblit v1.7.1