| | |
| | | |
| | | 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 |
| | | } |
| | | |
| | |
| | | // 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) { |
| | | |
| | | } |
| | | } |
| | | |