浏览代码

1.添加判断值

wenweiwei 3 年之前
父节点
当前提交
2126d2f2f7

+ 6 - 6
BFFramework/Classes/PModels/PQVideoListModel.swift

@@ -346,19 +346,19 @@ open class PQVideoListModel: PQBaseModel, BFVideoItemProtocol {
             totalTimeParas = Float64(totalTime).formatDurationToHMS()
         }
         if jsonDict.keys.contains("width") {
-            width = CGFloat(Int("\(jsonDict["width"] ?? 0)") ?? 0)
+            width = CGFloat(Float("\(jsonDict["width"] ?? 0)") ?? 0)
             if rotate > 0 {
-                originImageH = CGFloat(Int("\(jsonDict["width"] ?? 0)") ?? 0)
+                originImageH = width
             } else {
-                originImageW = CGFloat(Int("\(jsonDict["width"] ?? 0)") ?? 0)
+                originImageW = width
             }
         }
         if jsonDict.keys.contains("height") {
-            height = CGFloat(Int("\(jsonDict["height"] ?? 0)") ?? 0)
+            height = CGFloat(Float("\(jsonDict["height"] ?? 0)") ?? 0)
             if rotate > 0 {
-                originImageW = CGFloat(Int("\(jsonDict["height"] ?? 0)") ?? 0)
+                originImageW = height
             } else {
-                originImageH = CGFloat(Int("\(jsonDict["height"] ?? 0)") ?? 0)
+                originImageH = height
             }
         }
         if jsonDict.keys.contains("produceProjectDataV2"), ((jsonDict["produceProjectDataV2"] as? [String: Any])?.keys.count ?? 0) > 0 {

+ 3 - 0
BFFramework/Classes/Utils/PQSingletoMemoryUtil.swift

@@ -27,6 +27,9 @@ public class PQSingletoMemoryUtil: NSObject {
     public var commandReportParams: [String: Any]? // 口令启动时解析的其他值
     public var h5MsgVid: String? // 剪切板id
     public var isShowNoWiFiRemind: Bool = false // 是否提示过非WiFi提示
+    public var isNeedRefreshAttend: Bool = false // 是否需要刷新关注
+    public var isNeedRefreshJoinTopic: Bool = false // 是否需要刷新加入的话题
+    
     // 剪切板content是否为空,如果为空走承接逻辑,冷启动不再加载缓存
     public var isEmptyPasteContent: Bool = false {
         didSet {