无故事王国
2023-10-19 eb795a6523edbc0fe3a3b1a3d3bea1063041efd5
WanPai/AppDelegate.swift
@@ -9,6 +9,7 @@
import JQTools
import Alamofire
import AMapFoundationKit
import SDWebImage
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
@@ -19,17 +20,20 @@
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        Services.startNetworkMonitor()
//      WXApi.startLog(by: .normal) { text in
//         print("LOGO====>\(text)\n")
//      }
        YYPaymentManager.shared.configuredWeChat(appID: WeChatAPPID, universalLink: WechatUniversalLinks)
        YYPaymentManager.shared.configuredAlipay(appScheme: APPScheme)
        AMapServices.shared().enableHTTPS = true
        AMapServices.shared().apiKey = AMapKey
//      WXApi.checkUniversalLinkReady { step, result in
//         print("====>\(step.rawValue):\(result.errorInfo)====\(result.suggestion)\n")
//
//      }
      Services.querySystemImg(type: .launch).subscribe(onNext: {data in
         if let img = data.data{
            SDWebImageDownloader.shared.downloadImage(with: URL(string: img)) { image, _, _, _ in
               if let img = image{
                  LaunchImageHelper.changePortraitLaunchImage(img)
               }
            }
         }
      }).disposed(by: JQ_disposeBag)
        return true
    }