Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
iOSTeam
/
Majiabao
/
TealiveModule
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b1ede13a
authored
Jun 20, 2024
by
pierce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的页面签到逻辑修改
parent
806f0a2a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
Module/GDShowRoomListModule/GDShowRoomListModule/Module/GDShowRoomListModule.swift
Module/GDShowRoomListModule/GDShowRoomListModule/Module/GDShowRoomListModule.swift
View file @
b1ede13a
...
...
@@ -72,9 +72,19 @@ import RxSwift
}
public
func
showDailySignView
(
awardList
:[
GDDailySignRewardModel
])
{
guard
GDRouter
.
DataRouter
?
.
dailySignSwitch
.
value
==
true
else
{
return
}
guard
GDRouter
.
DataRouter
?
.
dailySign
.
value
==
false
else
{
return
}
if
let
dateStr
=
UserDefaults
.
standard
.
object
(
forKey
:
GDShowRoomListUDKey
.
dailySignDate
+
(
GDRouter
.
UserRouter
?
.
uid
??
""
))
as?
String
{
if
dateStr
==
todayString
()
{
return
}
}
let
dailySignView
=
GDDailySignView
(
with
:
awardList
)
if
let
view
=
UIApplication
.
shared
.
keyWindow
?
.
rootViewController
?
.
view
{
dailySignView
.
show
(
on
:
view
)
UserDefaults
.
standard
.
setValue
(
todayString
(),
forKey
:
GDShowRoomListUDKey
.
dailySignDate
+
(
GDRouter
.
UserRouter
?
.
uid
??
""
))
}
}
}
...
...
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