|
@@ -133,24 +133,21 @@ public func kf_imageCacheImage(originUrl: String, completeHandle: @escaping (_ i
|
|
|
/** 打印 */
|
|
|
public func BFLog<T>(message : T) {
|
|
|
// if PQBFConfig.shared.enableBFLog {
|
|
|
- let logger = NXLogger.shared
|
|
|
-
|
|
|
- logger.level = .info
|
|
|
- logger.ouput = .debuggerConsole
|
|
|
-
|
|
|
- logger.d(message as? String ?? "")
|
|
|
+// let logger = NXLogger.shared
|
|
|
+//
|
|
|
+// logger.level = .info
|
|
|
+// logger.ouput = .debuggerConsole
|
|
|
+//
|
|
|
+// logger.d(message as? String ?? "")
|
|
|
// } else {
|
|
|
// BuglyLog.level(.warn, logs: message as? String)
|
|
|
// }
|
|
|
}
|
|
|
|
|
|
-public func HHZPrint<T>(_: T, file _: String = #file, funcName _: String = #function, lineNum _: Int = #line) {
|
|
|
+public func HHZPrint<T>(_ message:T,file:String = #file,funcName:String = #function,lineNum:Int = #line){
|
|
|
#if DEBUG
|
|
|
-
|
|
|
-// let file = (file as NSString).lastPathComponent;
|
|
|
-//
|
|
|
-// print("hhz-\(file):(\(lineNum))--\(message)");
|
|
|
-
|
|
|
+ let file = (file as NSString).lastPathComponent;
|
|
|
+ print("hhz-\(file):(\(lineNum))--\(message)");
|
|
|
#endif
|
|
|
}
|
|
|
|
|
@@ -673,10 +670,10 @@ public func timeIntervalToDateString(timeInterval: TimeInterval) -> String {
|
|
|
}
|
|
|
|
|
|
public func updateTimeToCurrenTime(timeInterval: TimeInterval) -> String {
|
|
|
- // 获取当前的时间戳
|
|
|
- let currentTime = Date().timeIntervalSince1970
|
|
|
- print(currentTime, timeInterval, "sdsss")
|
|
|
- // 时间戳为毫秒级要 / 1000, 秒就不用除1000,参数带没带000
|
|
|
+ //获取当前的时间戳
|
|
|
+ let currentTime = Date().timeIntervalSince1970
|
|
|
+// print(currentTime, timeInterval, "sdsss")
|
|
|
+ //时间戳为毫秒级要 / 1000, 秒就不用除1000,参数带没带000
|
|
|
// let timeSta:TimeInterval = TimeInterval(timeInterval / 1000)
|
|
|
// 时间差
|
|
|
let reduceTime: TimeInterval = currentTime - timeInterval
|