Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PhoneManager
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yang
PhoneManager
Commits
5c70d6fe
Commit
5c70d6fe
authored
May 23, 2025
by
shenyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs
parent
9140a5d9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
8 deletions
+20
-8
project.pbxproj
PhoneManager.xcodeproj/project.pbxproj
+2
-2
AppDelegateEx.swift
PhoneManager/AppDelegateEx.swift
+4
-0
APIReportManager.swift
PhoneManager/Class/Manager/APIReport/APIReportManager.swift
+3
-0
HomeVideoCoverCell.swift
...anager/Class/Page/Home/View/cell/HomeVideoCoverCell.swift
+6
-3
PayDistanceViewController.swift
...s/Page/Pay/ViewController/PayDistanceViewController.swift
+5
-3
No files found.
PhoneManager.xcodeproj/project.pbxproj
View file @
5c70d6fe
...
@@ -808,7 +808,7 @@
...
@@ -808,7 +808,7 @@
INFOPLIST_KEY_UILaunchStoryboardName
=
LaunchScreen
;
INFOPLIST_KEY_UILaunchStoryboardName
=
LaunchScreen
;
INFOPLIST_KEY_UIMainStoryboardFile
=
Main
;
INFOPLIST_KEY_UIMainStoryboardFile
=
Main
;
INFOPLIST_KEY_UIStatusBarStyle
=
""
;
INFOPLIST_KEY_UIStatusBarStyle
=
""
;
INFOPLIST_KEY_UISupportedInterfaceOrientations
=
"UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations
=
UIInterfaceOrientationPortrait
;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad
=
"UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad
=
"UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"
;
IPHONEOS_DEPLOYMENT_TARGET
=
14.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
14.0
;
LD_RUNPATH_SEARCH_PATHS
=
(
LD_RUNPATH_SEARCH_PATHS
=
(
...
@@ -857,7 +857,7 @@
...
@@ -857,7 +857,7 @@
INFOPLIST_KEY_UILaunchStoryboardName
=
LaunchScreen
;
INFOPLIST_KEY_UILaunchStoryboardName
=
LaunchScreen
;
INFOPLIST_KEY_UIMainStoryboardFile
=
Main
;
INFOPLIST_KEY_UIMainStoryboardFile
=
Main
;
INFOPLIST_KEY_UIStatusBarStyle
=
""
;
INFOPLIST_KEY_UIStatusBarStyle
=
""
;
INFOPLIST_KEY_UISupportedInterfaceOrientations
=
"UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations
=
UIInterfaceOrientationPortrait
;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad
=
"UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad
=
"UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"
;
IPHONEOS_DEPLOYMENT_TARGET
=
14.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
14.0
;
LD_RUNPATH_SEARCH_PATHS
=
(
LD_RUNPATH_SEARCH_PATHS
=
(
...
...
PhoneManager/AppDelegateEx.swift
View file @
5c70d6fe
...
@@ -112,7 +112,9 @@ extension AppDelegate:UNUserNotificationCenterDelegate{
...
@@ -112,7 +112,9 @@ extension AppDelegate:UNUserNotificationCenterDelegate{
func
userNotificationCenter
(
_
center
:
UNUserNotificationCenter
,
didReceive
response
:
UNNotificationResponse
,
withCompletionHandler
completionHandler
:
@escaping
()
->
Void
)
{
func
userNotificationCenter
(
_
center
:
UNUserNotificationCenter
,
didReceive
response
:
UNNotificationResponse
,
withCompletionHandler
completionHandler
:
@escaping
()
->
Void
)
{
// 获取通知的标识符
// 获取通知的标识符
let
identifier
=
response
.
notification
.
request
.
identifier
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
{
switch
identifier
{
case
"notification_24h"
,
"notification_72h"
:
case
"notification_24h"
,
"notification_72h"
:
...
@@ -125,6 +127,8 @@ extension AppDelegate:UNUserNotificationCenterDelegate{
...
@@ -125,6 +127,8 @@ extension AppDelegate:UNUserNotificationCenterDelegate{
case
"first_install"
:
case
"first_install"
:
print
(
"用户点击了首次安装通知"
)
print
(
"用户点击了首次安装通知"
)
UserDefaults
.
standard
.
set
(
true
,
forKey
:
"user_click_first_install_alert"
)
UserDefaults
.
standard
.
set
(
true
,
forKey
:
"user_click_first_install_alert"
)
case
"first_install_alert"
:
print
(
"用户点击了首次安装后的二次"
)
default
:
default
:
break
break
}
}
...
...
PhoneManager/Class/Manager/APIReport/APIReportManager.swift
View file @
5c70d6fe
...
@@ -106,6 +106,7 @@ enum APIReportEnum{
...
@@ -106,6 +106,7 @@ enum APIReportEnum{
case
ad_price
case
ad_price
// app启动
// app启动
case
app_start
case
app_start
case
app_notification_click
// 归因上报枚举
// 归因上报枚举
case
source_atrribute
case
source_atrribute
case
source_atrribute_error
case
source_atrribute_error
...
@@ -127,6 +128,7 @@ enum APIReportEnum{
...
@@ -127,6 +128,7 @@ enum APIReportEnum{
case
Compress_show
case
Compress_show
case
EmailCleaner_show
case
EmailCleaner_show
case
Contacts_show
case
Contacts_show
}
}
extension
APIReportEnum
{
extension
APIReportEnum
{
...
@@ -143,6 +145,7 @@ extension APIReportEnum{
...
@@ -143,6 +145,7 @@ extension APIReportEnum{
case
.
ad_click
:
return
"ad_click"
case
.
ad_click
:
return
"ad_click"
case
.
ad_price
:
return
"ad_price"
case
.
ad_price
:
return
"ad_price"
case
.
app_start
:
return
"app_start"
case
.
app_start
:
return
"app_start"
case
.
app_notification_click
:
return
"app_notification_click"
// 归因上报枚举
// 归因上报枚举
case
.
source_atrribute
:
return
"source_atrribute"
case
.
source_atrribute
:
return
"source_atrribute"
...
...
PhoneManager/Class/Page/Home/View/cell/HomeVideoCoverCell.swift
View file @
5c70d6fe
...
@@ -214,17 +214,20 @@ extension HomeVideoCoverCell{
...
@@ -214,17 +214,20 @@ extension HomeVideoCoverCell{
}
}
playerLayer
.
isHidden
=
false
playerLayer
.
isHidden
=
false
if
videoPlayer
.
rate
==
0
,
videoPlayer
.
currentItem
!=
nil
{
videoPlayer
.
seek
(
to
:
.
zero
)
videoPlayer
.
play
()
}
if
videoURL
==
videoUrl
{
if
videoURL
==
videoUrl
{
// Print("地址相同,无需刷新")
// Print("地址相同,无需刷新")
if
videoPlayer
.
rate
==
0
{
videoPlayer
.
play
()
}
return
return
}
}
videoUrl
=
videoURL
videoUrl
=
videoURL
let
item
=
AVPlayerItem
.
init
(
url
:
videoURL
)
let
item
=
AVPlayerItem
.
init
(
url
:
videoURL
)
videoPlayer
.
replaceCurrentItem
(
with
:
item
)
videoPlayer
.
replaceCurrentItem
(
with
:
item
)
videoPlayer
.
play
()
videoPlayer
.
play
()
...
...
PhoneManager/Class/Page/Pay/ViewController/PayDistanceViewController.swift
View file @
5c70d6fe
...
@@ -159,7 +159,7 @@ class PayDistanceViewController: UIViewController {
...
@@ -159,7 +159,7 @@ class PayDistanceViewController: UIViewController {
make
.
centerX
.
equalToSuperview
()
make
.
centerX
.
equalToSuperview
()
make
.
width
.
equalTo
(
343
.
RW
())
make
.
width
.
equalTo
(
343
.
RW
())
make
.
height
.
equalTo
(
57
.
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
// cancelLabel.snp.makeConstraints { make in
...
@@ -243,13 +243,15 @@ class PayDistanceViewController: UIViewController {
...
@@ -243,13 +243,15 @@ class PayDistanceViewController: UIViewController {
width
:
111
,
width
:
111
,
height
:
37
)
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
()),
y
:
kSafeAreaInsets
.
top
+
CGFloat
(
129
.
RH
())
+
dropH
+
CGFloat
(
40
.
RH
()),
width
:
300
,
width
:
300
,
height
:
CGFloat
(
40
.
RW
()))
height
:
CGFloat
(
40
.
RW
()))
let
topH
=
85
+
kSafeAreaInsets
.
top
self
.
annual
.
frame
=
CGRect
(
x
:
(
ScreenW
-
150
)
/
2
,
self
.
annual
.
frame
=
CGRect
(
x
:
(
ScreenW
-
150
)
/
2
,
y
:
self
.
distanceL
.
frame
.
maxY
+
CGFloat
(
11
5
.
RH
()),
y
:
self
.
distanceL
.
frame
.
maxY
+
CGFloat
(
8
5
.
RH
()),
width
:
150
,
width
:
150
,
height
:
22
)
height
:
22
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment