diff --git a/ReaderHive.xcodeproj/project.pbxproj b/ReaderHive.xcodeproj/project.pbxproj index 105cdbe..a0f15f9 100644 --- a/ReaderHive.xcodeproj/project.pbxproj +++ b/ReaderHive.xcodeproj/project.pbxproj @@ -3100,7 +3100,7 @@ CODE_SIGN_ENTITLEMENTS = ReaderHive/ReaderHive.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 2; + CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 9JR2Y32ZU3; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; GENERATE_INFOPLIST_FILE = YES; @@ -3121,7 +3121,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.1.0; + MARKETING_VERSION = 1.1.1; PRODUCT_BUNDLE_IDENTIFIER = com.lssj.ReaderHive; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -3146,7 +3146,7 @@ CODE_SIGN_ENTITLEMENTS = ReaderHive/ReaderHive.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 2; + CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 9JR2Y32ZU3; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = ReaderHive/Source/Info.plist; @@ -3166,7 +3166,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.1.0; + MARKETING_VERSION = 1.1.1; PRODUCT_BUNDLE_IDENTIFIER = com.lssj.ReaderHive; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/ReaderHive/Base/Networking/API/NRStatAPI.swift b/ReaderHive/Base/Networking/API/NRStatAPI.swift index b38b435..3f274e7 100644 --- a/ReaderHive/Base/Networking/API/NRStatAPI.swift +++ b/ReaderHive/Base/Networking/API/NRStatAPI.swift @@ -134,12 +134,16 @@ struct NRStatAPI { NRNetwork.request(parameters: param) { (response: NRNetwork.Response) in } } - static func nr_requestStatApnsClick(id: String, title: String) { - let parameters = [ + static func nr_requestStatApnsClick(id: String, shortPlayId: String?, title: String) { + var parameters = [ "message_id" : id, "title" : title ] + if let shortPlayId = shortPlayId { + parameters["short_play_id"] = shortPlayId + } + var param = NRNetwork.Parameters(path: "/message/sendReport") param.method = .post param.isLoding = false diff --git a/ReaderHive/Class/Explore/VC/NRExploreNovelContentListViewController.swift b/ReaderHive/Class/Explore/VC/NRExploreNovelContentListViewController.swift index 0cb896a..6f603a0 100644 --- a/ReaderHive/Class/Explore/VC/NRExploreNovelContentListViewController.swift +++ b/ReaderHive/Class/Explore/VC/NRExploreNovelContentListViewController.swift @@ -7,6 +7,7 @@ import SnapKit import UIKit +import LYEmptyView class NRExploreNovelContentListViewController: NRViewController { @@ -45,6 +46,7 @@ class NRExploreNovelContentListViewController: NRViewController { collectionView.dataSource = self collectionView.showsVerticalScrollIndicator = false collectionView.contentInset = .init(top: 0, left: 0, bottom: 10, right: 0) + collectionView.ly_emptyView = NREmpty.nr_emptyView() // collectionView.nr_addRefreshHeader { [weak self] in // self?.handleHeaderRefresh(nil) // } diff --git a/ReaderHive/Delegate/AppDelegate+APNS.swift b/ReaderHive/Delegate/AppDelegate+APNS.swift index 08aadaf..fdb36bf 100644 --- a/ReaderHive/Delegate/AppDelegate+APNS.swift +++ b/ReaderHive/Delegate/AppDelegate+APNS.swift @@ -95,7 +95,7 @@ extension AppDelegate: UNUserNotificationCenterDelegate { completionHandler() return } - NRStatAPI.nr_requestStatApnsClick(id: model.message_id ?? "", title: response.notification.request.content.title) + NRStatAPI.nr_requestStatApnsClick(id: model.message_id ?? "", shortPlayId: model.short_play_id, title: response.notification.request.content.title) if model.path == .videoDetail, let shortPlayId = model.short_play_id { let vc = NRNovelReaderViewController()