Browse Source

1.添加素材显示

wenweiwei 3 years ago
parent
commit
e79195a1e3
1 changed files with 7 additions and 7 deletions
  1. 7 7
      BFCommonKit/Classes/BFUtility/PQCommonMethodUtil.swift

+ 7 - 7
BFCommonKit/Classes/BFUtility/PQCommonMethodUtil.swift

@@ -122,24 +122,24 @@ public func bf_getCurrentViewController() -> UIViewController? {
  
  */
 public func BFLog<T>( _ type : Int = 0, _ file:String = #file, _ line:Int = #line, message: T) {
-//    let dateFmt = DateFormatter()
-//    dateFmt.dateFormat = "HH:mm:ss:SSSS"
-//    let file = (file as NSString).lastPathComponent;
-//    let msg = "\(file) (L:\(line)) \(message)"
+    let dateFmt = DateFormatter()
+    dateFmt.dateFormat = "HH:mm:ss:SSSS"
+    let file = (file as NSString).lastPathComponent;
+    let msg = "\(file) (L:\(line)) \(message)"
 //    if type == 0{
 ////        BuglyLog.level(.warn, logs: msg)
 //        print("\(dateFmt.string(from: Date())) \(msg)")
 //    }
-//#if DEBUG
+#if DEBUG
 //     if type == 1 {
 //        print("hhz-\(dateFmt.string(from: Date())) \(msg)");
 //     }else if type == 2 {
 //        print("ak-\(dateFmt.string(from: Date())) \(msg)");
 //     }else if type == 3 {
-//        print("ww-\(dateFmt.string(from: Date())) \(msg)");
+        print("ww-\(dateFmt.string(from: Date())) \(msg)");
 //     }
 //
-//#endif
+#endif
 }
 
 // MARK: 获取公共参数