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
6c0fc9fc
Commit
6c0fc9fc
authored
Apr 29, 2025
by
CZ1004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评分弹窗逻辑 第一版
parent
0d4d241e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
HomeInfoViewController.swift
...lass/Session/Home/Controller/HomeInfoViewController.swift
+23
-1
No files found.
PhoneManager/Class/Session/Home/Controller/HomeInfoViewController.swift
View file @
6c0fc9fc
...
@@ -56,6 +56,25 @@ class HomeInfoViewController:BaseViewController {
...
@@ -56,6 +56,25 @@ class HomeInfoViewController:BaseViewController {
}
}
}
}
func
showCommentPage
(){
// 首先是免费三次机会用完之后,第四次点击广告,在结果页点击棒极了(删除成功,且loading页面消失)
if
AdvManager
.
shared
.
currentTimes
==
0
{
// 判断当天有没有被触发过
if
let
isCommentInCurrentDay
=
UserDefaults
.
standard
.
object
(
forKey
:
"showCommentInCurrentDay"
){
let
temp
:
Bool
=
isCommentInCurrentDay
as!
Bool
if
!
temp
{
// 如果当天没有被显示过
CustomRate
()
.
show
()
}
else
{
// 如果当天显示过了
UserDefaults
.
standard
.
set
(
true
,
forKey
:
"showCommentInCurrentDay"
)
}
}
else
{
CustomRate
()
.
show
()
}
}
}
func
deleteOp
(
imgs
:
[
AssetModel
],
isAfterAdv
:
Bool
){
func
deleteOp
(
imgs
:
[
AssetModel
],
isAfterAdv
:
Bool
){
var
tempStringArray
:
[
String
]
=
[]
var
tempStringArray
:
[
String
]
=
[]
...
@@ -65,13 +84,16 @@ class HomeInfoViewController:BaseViewController {
...
@@ -65,13 +84,16 @@ class HomeInfoViewController:BaseViewController {
let
fetchs
=
PHAsset
.
fetchAssets
(
withLocalIdentifiers
:
tempStringArray
,
options
:
nil
)
let
fetchs
=
PHAsset
.
fetchAssets
(
withLocalIdentifiers
:
tempStringArray
,
options
:
nil
)
let
fileSize
=
FileTool
()
.
calculateTotalAssetSize
(
fetchResult
:
fetchs
)
let
fileSize
=
FileTool
()
.
calculateTotalAssetSize
(
fetchResult
:
fetchs
)
//
//
PhotoAndVideoMananger
.
deleteAssets
(
localIdentifiers
:
tempStringArray
)
{[
weak
self
]
in
PhotoAndVideoMananger
.
deleteAssets
(
localIdentifiers
:
tempStringArray
)
{[
weak
self
]
in
guard
let
self
else
{
return
}
guard
let
self
else
{
return
}
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
1.0
)
{
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
1.0
)
{
PMLoadingHUD
.
share
.
disMiss
()
PMLoadingHUD
.
share
.
disMiss
()
// 结束之后是否弹出评价页面
// 更新免费次数
// 更新免费次数
if
isAfterAdv
==
false
{
if
isAfterAdv
==
false
{
updateFreeTimes
()
updateFreeTimes
()
...
...
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