Commit 5c70d6fe authored by shenyong's avatar shenyong

fix bugs

parent 9140a5d9
......@@ -808,7 +808,7 @@
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UIStatusBarStyle = "";
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = (
......@@ -857,7 +857,7 @@
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UIStatusBarStyle = "";
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = (
......
......@@ -112,7 +112,9 @@ extension AppDelegate:UNUserNotificationCenterDelegate{
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
// 获取通知的标识符
let identifier = response.notification.request.identifier
let date = Date().string("yyyy-MM-dd HH:mm:ss")
APIReportManager.shared.startReport(type: .app_notification_click, ext: ["name":identifier,"click_time":date])
// 根据不同的通知类型执行不同的操作
switch identifier {
case "notification_24h", "notification_72h":
......@@ -125,6 +127,8 @@ extension AppDelegate:UNUserNotificationCenterDelegate{
case "first_install":
print("用户点击了首次安装通知")
UserDefaults.standard.set(true, forKey: "user_click_first_install_alert")
case "first_install_alert":
print("用户点击了首次安装后的二次")
default:
break
}
......
......@@ -106,6 +106,7 @@ enum APIReportEnum{
case ad_price
// app启动
case app_start
case app_notification_click
// 归因上报枚举
case source_atrribute
case source_atrribute_error
......@@ -127,6 +128,7 @@ enum APIReportEnum{
case Compress_show
case EmailCleaner_show
case Contacts_show
}
extension APIReportEnum{
......@@ -143,6 +145,7 @@ extension APIReportEnum{
case .ad_click: return "ad_click"
case .ad_price: return "ad_price"
case .app_start: return "app_start"
case .app_notification_click: return "app_notification_click"
// 归因上报枚举
case .source_atrribute: return "source_atrribute"
......
......@@ -214,17 +214,20 @@ extension HomeVideoCoverCell{
}
playerLayer.isHidden = false
if videoPlayer.rate == 0,videoPlayer.currentItem != nil{
videoPlayer.seek(to: .zero)
videoPlayer.play()
}
if videoURL == videoUrl{
// Print("地址相同,无需刷新")
if videoPlayer.rate == 0{
videoPlayer.play()
}
return
}
videoUrl = videoURL
let item = AVPlayerItem.init(url: videoURL)
videoPlayer.replaceCurrentItem(with: item)
videoPlayer.play()
......
......@@ -159,7 +159,7 @@ class PayDistanceViewController: UIViewController {
make.centerX.equalToSuperview()
make.width.equalTo(343.RW())
make.height.equalTo(57.RW())
make.bottom.equalTo(appleLabel.snp.top).offset(-24)
make.bottom.equalTo(appleLabel.snp.top).offset(-24.RH())
}
// cancelLabel.snp.makeConstraints { make in
......@@ -243,13 +243,15 @@ class PayDistanceViewController: UIViewController {
width: 111,
height: 37)
self.distanceL.frame = CGRect(x: (ScreenW - CGFloat(300.RW())) / 2,
self.distanceL.frame = CGRect(x: (ScreenW - 300) / 2,
y: kSafeAreaInsets.top + CGFloat(129.RH()) + dropH + CGFloat(40.RH()),
width: 300,
height: CGFloat(40.RW()))
let topH = 85 + kSafeAreaInsets.top
self.annual.frame = CGRect(x: (ScreenW - 150) / 2,
y: self.distanceL.frame.maxY + CGFloat(115.RH()),
y: self.distanceL.frame.maxY + CGFloat(85.RH()),
width: 150,
height: 22)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment