|
@@ -15,69 +15,69 @@ import BFCommonKit
|
|
|
/// 内存缓存数据
|
|
|
public class PQSingletoMemoryUtil: NSObject {
|
|
|
public static let shared = PQSingletoMemoryUtil()
|
|
|
- var isShowAttendPoint: Bool = false // 是否有关注更新
|
|
|
- var attendIdosUpdateCount: Int = 0 // 关注更新条数
|
|
|
- var isLeftSlipRemind: Bool = false
|
|
|
+ public var isShowAttendPoint: Bool = false // 是否有关注更新
|
|
|
+ public var attendIdosUpdateCount: Int = 0 // 关注更新条数
|
|
|
+ public var isLeftSlipRemind: Bool = false
|
|
|
public var needLogin: Bool = false // 是否需要显示手机登录
|
|
|
- var isFinishedCoging: Bool = false // 是否已完成配置请求
|
|
|
- var isFinishedAlias: Bool = false // 是否完成绑定别名
|
|
|
- var selectedTabIndex: String?
|
|
|
- var commandVideoItem: PQVideoListModel? // 口令内容
|
|
|
- var commandLaunchParams: String = "" // 口令启动时的值
|
|
|
- var commandReportParams: [String: Any]? // 口令启动时解析的其他值
|
|
|
- var h5MsgVid: String? // 剪切板id
|
|
|
- var isShowNoWiFiRemind: Bool = false // 是否提示过非WiFi提示
|
|
|
+ public var isFinishedCoging: Bool = false // 是否已完成配置请求
|
|
|
+ public var isFinishedAlias: Bool = false // 是否完成绑定别名
|
|
|
+ public var selectedTabIndex: String?
|
|
|
+ public var commandVideoItem: PQVideoListModel? // 口令内容
|
|
|
+ public var commandLaunchParams: String = "" // 口令启动时的值
|
|
|
+ public var commandReportParams: [String: Any]? // 口令启动时解析的其他值
|
|
|
+ public var h5MsgVid: String? // 剪切板id
|
|
|
+ public var isShowNoWiFiRemind: Bool = false // 是否提示过非WiFi提示
|
|
|
// 剪切板content是否为空,如果为空走承接逻辑,冷启动不再加载缓存
|
|
|
- var isEmptyPasteContent: Bool = false {
|
|
|
+ public var isEmptyPasteContent: Bool = false {
|
|
|
didSet {
|
|
|
BFLog(message: "isEmptyPasteContent = \(isEmptyPasteContent)")
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 展示无服务提示视图(剪切板 data.reportData.downloadButtonType为 weapp_share_noServiceDownloadApp/weapp_categoryTab_noServiceDownloadApp
|
|
|
- var isShowPasteNoServeView: Bool = false {
|
|
|
+ public var isShowPasteNoServeView: Bool = false {
|
|
|
didSet {
|
|
|
BFLog(message: "isShowPasteNoServeView = \(isShowPasteNoServeView)")
|
|
|
}
|
|
|
}
|
|
|
/// 是否正在展示广告view
|
|
|
- var isLoadingSplashAdView: Bool = false {
|
|
|
+ public var isLoadingSplashAdView: Bool = false {
|
|
|
didSet {
|
|
|
BFLog(message: "isLoadingSplashAdView = \(isLoadingSplashAdView)")
|
|
|
}
|
|
|
}
|
|
|
- var cutBoardInfo: String? // 剪切板信息
|
|
|
- var cutBoard: String? // 剪切板来源cutBoardInfo
|
|
|
- var isPushLoading: Bool = false // 是否正在加载推送数据
|
|
|
+ public var cutBoardInfo: String? // 剪切板信息
|
|
|
+ public var cutBoard: String? // 剪切板来源cutBoardInfo
|
|
|
+ public var isPushLoading: Bool = false // 是否正在加载推送数据
|
|
|
|
|
|
- var coldLaunchType: coldLaunchType?
|
|
|
- var isColdLaunch: Bool = false // 冷启动
|
|
|
- var coldLaunchStatus: Int = 0 // 1-请求中 2-请求成功 3-请求失败
|
|
|
- var deviceToken: String = "" // 推送deviceToken
|
|
|
+ public var coldLaunchType: coldLaunchType?
|
|
|
+ public var isColdLaunch: Bool = false // 冷启动
|
|
|
+ public var coldLaunchStatus: Int = 0 // 1-请求中 2-请求成功 3-请求失败
|
|
|
+ public var deviceToken: String = "" // 推送deviceToken
|
|
|
// var activityData: PQActivityModel? // 活动数据信息
|
|
|
- var isShowTodaySuccess: Bool = false // 是否已经展示过今日已完成
|
|
|
- var sessionId: String = getUniqueId(desc: "sessionId")
|
|
|
- var subSessionid: String?
|
|
|
- var isDefaultAtten: Bool = false // 是否默认进入关注
|
|
|
- var isDefaultMineSingleVideoDetail: Bool = false // 是否默认进入我的单个视频详情
|
|
|
- var playCount: Int = 0 // 播放次数
|
|
|
- var uploadDatas: [PQVideoListModel] = Array<PQVideoListModel>.init() // 正在上传的视频集合
|
|
|
- var isShowUpSlideGuide: Bool = false // 是否展示了滑动向上的提示
|
|
|
- var showUpSlideData: PQVideoListModel? // 是否展示了滑动向上的提示
|
|
|
- var makeVideoProjectId: String? // 制作视频项目Id
|
|
|
- var draftboxId: String? // 草稿箱ID
|
|
|
+ public var isShowTodaySuccess: Bool = false // 是否已经展示过今日已完成
|
|
|
+ public var sessionId: String = getUniqueId(desc: "sessionId")
|
|
|
+ public var subSessionid: String?
|
|
|
+ public var isDefaultAtten: Bool = false // 是否默认进入关注
|
|
|
+ public var isDefaultMineSingleVideoDetail: Bool = false // 是否默认进入我的单个视频详情
|
|
|
+ public var playCount: Int = 0 // 播放次数
|
|
|
+ public var uploadDatas: [PQVideoListModel] = Array<PQVideoListModel>.init() // 正在上传的视频集合
|
|
|
+ public var isShowUpSlideGuide: Bool = false // 是否展示了滑动向上的提示
|
|
|
+ public var showUpSlideData: PQVideoListModel? // 是否展示了滑动向上的提示
|
|
|
+ public var makeVideoProjectId: String? // 制作视频项目Id
|
|
|
+ public var draftboxId: String? // 草稿箱ID
|
|
|
// add by ak 结构化数据 saveDraft api 要 用到的参数
|
|
|
- var sdata: String?
|
|
|
+ public var sdata: String?
|
|
|
// add by ak 结构化数据 saveDraft api 要 用到的参数
|
|
|
- var title: String?
|
|
|
+ public var title: String?
|
|
|
// add by ak 结构化数据 saveDraft api 要 用到的参数
|
|
|
- var coverUrl: String?
|
|
|
+ public var coverUrl: String?
|
|
|
|
|
|
// 未读数字
|
|
|
// var unReadInfo: PQMsgReadInfoModel?
|
|
|
- var abInfoData: [String: Any] = Dictionary<String, Any>.init() // 实验数据
|
|
|
- var allExportSession: [PHAsset:AVAssetExportSession] = [PHAsset:AVAssetExportSession].init()
|
|
|
- func updateTabPoint() {
|
|
|
+ public var abInfoData: [String: Any] = Dictionary<String, Any>.init() // 实验数据
|
|
|
+ public var allExportSession: [PHAsset:AVAssetExportSession] = [PHAsset:AVAssetExportSession].init()
|
|
|
+ public func updateTabPoint() {
|
|
|
// let tabBar =
|
|
|
// rootViewController()?.tabBar
|
|
|
// if isShowAttendPoint {
|