fix
无故事王国
2024-02-28 4468d9f9b3b8c70597f04e5f1ecb61118c404d2c
WanPai/Config/Def.swift
@@ -10,6 +10,7 @@
import JQTools
import SVProgressHUD
import QMUIKit
import OSLog
let SHAKEY = "BT7NPhA0f775uzcUuftWjCE1TYZlWmHZ"
let WechatUniversalLinks = "https://www.weparklife.com/"
@@ -32,26 +33,40 @@
    return (uiScreen?.delegate as? SceneDelegate)
}()
func LogSuccess(_ items:Any...,separator:String=" ",file:String=#file,function:String=#function,line:Int=#line){
#if DEBUG
            if #available(iOS 14.0, *) {
                        let logger = Logger(subsystem: "WanPai", category: function)
                        logger.error("\(items)")
            }else{
    let file = (file as NSString).lastPathComponent.split(separator: ".").first!;
    print("✅✅✅ SUCCESS: \(file)  \(function) [Line: \(line)]: \(items)",separator);
            }
#endif
}
func LogError(_ items:Any...,separator:String=" ",file:String=#file,function:String=#function,line:Int=#line){
#if DEBUG
            if #available(iOS 14.0, *) {
                        let logger = Logger(subsystem: "WanPai", category: function)
                        logger.error("\(items)")
            }else{
    let file = (file as NSString).lastPathComponent.split(separator: ".").first!;
    print("❌❌❌ ERROR: \(file)  \(function) [Line: \(line)]: \(items)",separator);
            }
#endif
}
func LogInfo(_ items:Any...,separator:String=" ",file:String=#file,function:String=#function,line:Int=#line){
#if DEBUG
            if #available(iOS 14.0, *) {
                        let logger = Logger(subsystem: "WanPai", category: function)
                        logger.error("\(items)")
            }else{
    let file = (file as NSString).lastPathComponent.split(separator: ".").first!;
    print("⚠️⚠️⚠️INFO: \(file)  \(function) [Line: \(line)]: \(items)",separator);
            }
#endif
}
@@ -220,6 +235,10 @@
            JQ_currentViewController().jq_push(vc: JoinMemberIntroduceVC())
         }
                                    if page == "社区世界杯"{
                                                JQ_currentViewController().jq_push(vc: WorldCupListVC())
                                    }
      case "开始课程":
         if page == "主页"{
            JQ_currentViewController().navigationController?.popToRootViewController(animated: true)