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
3a2d1c11
authored
Nov 21, 2024
by
pierce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改sh状态相关
parent
97c9302f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
104 additions
and
7 deletions
Module/GDBaseBussiness/GDBaseBussiness/Application.swift
Module/GDMoment/GDMoment/Features/Main/View/GDMomentPlazaView.swift
Module/GDMoment/GDMoment/Features/MomentDetail/View/GDMessageMomentDetailController.swift
Module/GDMoment/GDMoment/Features/TopicDetail/View/GDTopicDetailViewController.swift
Module/GDMoment/GDMoment/Features/ZoneMoment/View/GDZoneContentMomentView.swift
Module/GDShowRoomModule/GDShowRoomModule/Features/Function/View/AudiencePanelView/GDLiveAudiencePanelView.swift
Module/GDBaseBussiness/GDBaseBussiness/Application.swift
View file @
3a2d1c11
...
@@ -196,7 +196,8 @@ class Application: NSObject {
...
@@ -196,7 +196,8 @@ class Application: NSObject {
if
GDRouter
.
UserRouter
?
.
user
.
value
.
uid
==
ReviewInfo
.
gd_uid
{
if
GDRouter
.
UserRouter
?
.
user
.
value
.
uid
==
ReviewInfo
.
gd_uid
{
self
.
isCurrentVersionVerified
.
accept
(
true
)
self
.
isCurrentVersionVerified
.
accept
(
true
)
}
else
{
}
else
{
self
.
isCurrentVersionVerified
.
accept
(
false
)
// 如果不是shzh,则按照上次的为准,需要一个兜底方案
// self.isCurrentVersionVerified.accept(false)
}
}
})
.
disposed
(
by
:
disposeBag
)
})
.
disposed
(
by
:
disposeBag
)
}
}
...
...
Module/GDMoment/GDMoment/Features/Main/View/GDMomentPlazaView.swift
View file @
3a2d1c11
...
@@ -241,9 +241,32 @@ class GDMomentPlazaView: BaseView {
...
@@ -241,9 +241,32 @@ class GDMomentPlazaView: BaseView {
}
}
func
reportMoment
(
with
model
:
GDMomentPlazaMomentModel
)
{
func
reportMoment
(
with
model
:
GDMomentPlazaMomentModel
)
{
_
=
GDAlertView
.
showActionSheet
(
viewController
:
UIViewController
.
topViewController
(),
title
:
nil
,
message
:
nil
,
sheetTitles
:
[
"举报"
],
cancleTitle
:
"取消"
,
sheetAction
:
{
index
in
// shenhe 状态下才会调用此方法
var
optionArr
:
[
String
]
=
[
"举报"
]
if
GDRouter
.
BaseBusinessRouter
?
.
isCurrentVersionVerified
.
value
==
true
{
optionArr
=
[
"举报"
,
"不再看TA"
]
}
_
=
GDAlertView
.
showActionSheet
(
viewController
:
self
.
viewController
,
title
:
nil
,
message
:
nil
,
sheetTitles
:
optionArr
,
cancleTitle
:
"取消"
,
sheetAction
:
{[
weak
self
]
index
in
if
index
==
0
{
if
index
==
0
{
GDRouter
.
UserZone
?
.
showReportVC
(
from
:
.
moment
,
uid
:
model
.
uid
,
nickname
:
model
.
nickname
)
GDRouter
.
UserZone
?
.
showReportVC
(
from
:
.
moment
,
uid
:
model
.
uid
,
nickname
:
model
.
nickname
)
}
else
{
guard
let
self
=
self
else
{
return
}
_
=
GDAlertView
.
showAlertView
(
viewController
:
UIViewController
.
topViewController
(),
title
:
"确定不再看
\(
model
.
nickname
??
""
)
?"
,
message
:
nil
,
confirmTitle
:
"确定"
,
cancleTitle
:
"取消"
,
confirmAction
:
{
if
let
uid
=
model
.
uid
{
// 写入uid
if
var
blackList
=
UserDefaults
.
standard
.
object
(
forKey
:
GDUserManagerPublicUDKey
.
mainpageBlackList
)
as?
[
String
]
{
blackList
.
append
(
uid
)
UserDefaults
.
standard
.
setValue
(
blackList
,
forKey
:
GDUserManagerPublicUDKey
.
mainpageBlackList
)
}
else
{
UserDefaults
.
standard
.
setValue
([
uid
],
forKey
:
GDUserManagerPublicUDKey
.
mainpageBlackList
)
}
}
self
.
viewModel
.
refreshData
(
for
:
1
)
},
cancleAction
:
nil
)
}
}
},
cancleAction
:
{
},
cancleAction
:
{
...
...
Module/GDMoment/GDMoment/Features/MomentDetail/View/GDMessageMomentDetailController.swift
View file @
3a2d1c11
...
@@ -195,9 +195,32 @@ class GDMessageMomentDetailController: BaseViewController {
...
@@ -195,9 +195,32 @@ class GDMessageMomentDetailController: BaseViewController {
}
}
func
reportMoment
(
with
model
:
GDZoneContentMomentModel
)
{
func
reportMoment
(
with
model
:
GDZoneContentMomentModel
)
{
_
=
GDAlertView
.
showActionSheet
(
viewController
:
self
,
title
:
nil
,
message
:
nil
,
sheetTitles
:
[
"举报"
],
cancleTitle
:
"取消"
,
sheetAction
:
{[
weak
self
]
index
in
// shenhe 状态下才会调用此方法
var
optionArr
:
[
String
]
=
[
"举报"
]
if
GDRouter
.
BaseBusinessRouter
?
.
isCurrentVersionVerified
.
value
==
true
{
optionArr
=
[
"举报"
,
"不再看TA"
]
}
_
=
GDAlertView
.
showActionSheet
(
viewController
:
self
,
title
:
nil
,
message
:
nil
,
sheetTitles
:
optionArr
,
cancleTitle
:
"取消"
,
sheetAction
:
{[
weak
self
]
index
in
if
index
==
0
{
if
index
==
0
{
GDRouter
.
UserZone
?
.
showReportVC
(
from
:
.
moment
,
uid
:
model
.
uid
,
nickname
:
self
?
.
viewModel
.
user
.
value
?
.
nickname
)
GDRouter
.
UserZone
?
.
showReportVC
(
from
:
.
moment
,
uid
:
model
.
uid
,
nickname
:
self
?
.
viewModel
.
user
.
value
?
.
nickname
)
}
else
{
guard
let
self
=
self
else
{
return
}
_
=
GDAlertView
.
showAlertView
(
viewController
:
UIViewController
.
topViewController
(),
title
:
"确定不再看
\(
self
.
viewModel
.
user
.
value
?
.
nickname
??
""
)
?"
,
message
:
nil
,
confirmTitle
:
"确定"
,
cancleTitle
:
"取消"
,
confirmAction
:
{
if
let
uid
=
model
.
uid
{
// 写入uid
if
var
blackList
=
UserDefaults
.
standard
.
object
(
forKey
:
GDUserManagerPublicUDKey
.
mainpageBlackList
)
as?
[
String
]
{
blackList
.
append
(
uid
)
UserDefaults
.
standard
.
setValue
(
blackList
,
forKey
:
GDUserManagerPublicUDKey
.
mainpageBlackList
)
}
else
{
UserDefaults
.
standard
.
setValue
([
uid
],
forKey
:
GDUserManagerPublicUDKey
.
mainpageBlackList
)
}
}
self
.
viewModel
.
refreshMomentData
()
},
cancleAction
:
nil
)
}
}
},
cancleAction
:
{
},
cancleAction
:
{
...
...
Module/GDMoment/GDMoment/Features/TopicDetail/View/GDTopicDetailViewController.swift
View file @
3a2d1c11
...
@@ -342,9 +342,33 @@ class GDTopicDetailViewController: BaseViewController {
...
@@ -342,9 +342,33 @@ class GDTopicDetailViewController: BaseViewController {
}
}
func
reportMoment
(
with
model
:
GDMomentPlazaMomentModel
)
{
func
reportMoment
(
with
model
:
GDMomentPlazaMomentModel
)
{
_
=
GDAlertView
.
showActionSheet
(
viewController
:
self
,
title
:
nil
,
message
:
nil
,
sheetTitles
:
[
"举报"
],
cancleTitle
:
"取消"
,
sheetAction
:
{[
weak
self
]
index
in
// shenhe 状态下才会调用此方法
var
optionArr
:
[
String
]
=
[
"举报"
]
if
GDRouter
.
BaseBusinessRouter
?
.
isCurrentVersionVerified
.
value
==
true
{
optionArr
=
[
"举报"
,
"不再看TA"
]
}
_
=
GDAlertView
.
showActionSheet
(
viewController
:
self
,
title
:
nil
,
message
:
nil
,
sheetTitles
:
optionArr
,
cancleTitle
:
"取消"
,
sheetAction
:
{[
weak
self
]
index
in
if
index
==
0
{
if
index
==
0
{
GDRouter
.
UserZone
?
.
showReportVC
(
from
:
.
moment
,
uid
:
model
.
uid
,
nickname
:
model
.
nickname
)
GDRouter
.
UserZone
?
.
showReportVC
(
from
:
.
moment
,
uid
:
model
.
uid
,
nickname
:
model
.
nickname
)
}
else
{
guard
let
self
=
self
else
{
return
}
_
=
GDAlertView
.
showAlertView
(
viewController
:
UIViewController
.
topViewController
(),
title
:
"确定不再看
\(
model
.
nickname
??
""
)
?"
,
message
:
nil
,
confirmTitle
:
"确定"
,
cancleTitle
:
"取消"
,
confirmAction
:
{
if
let
uid
=
model
.
uid
{
// 写入uid
if
var
blackList
=
UserDefaults
.
standard
.
object
(
forKey
:
GDUserManagerPublicUDKey
.
mainpageBlackList
)
as?
[
String
]
{
blackList
.
append
(
uid
)
UserDefaults
.
standard
.
setValue
(
blackList
,
forKey
:
GDUserManagerPublicUDKey
.
mainpageBlackList
)
}
else
{
UserDefaults
.
standard
.
setValue
([
uid
],
forKey
:
GDUserManagerPublicUDKey
.
mainpageBlackList
)
}
}
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
},
cancleAction
:
nil
)
}
}
},
cancleAction
:
{
},
cancleAction
:
{
...
...
Module/GDMoment/GDMoment/Features/ZoneMoment/View/GDZoneContentMomentView.swift
View file @
3a2d1c11
...
@@ -212,9 +212,33 @@ class GDZoneContentMomentView: GDZoneContentPublicMomentView {
...
@@ -212,9 +212,33 @@ class GDZoneContentMomentView: GDZoneContentPublicMomentView {
}
}
func
reportMoment
(
with
model
:
GDZoneContentMomentModel
)
{
func
reportMoment
(
with
model
:
GDZoneContentMomentModel
)
{
_
=
GDAlertView
.
showActionSheet
(
viewController
:
self
.
viewController
,
title
:
nil
,
message
:
nil
,
sheetTitles
:
[
"举报"
],
cancleTitle
:
"取消"
,
sheetAction
:
{[
weak
self
]
index
in
// shenhe 状态下才会调用此方法
var
optionArr
:
[
String
]
=
[
"举报"
]
if
GDRouter
.
BaseBusinessRouter
?
.
isCurrentVersionVerified
.
value
==
true
{
optionArr
=
[
"举报"
,
"不再看TA"
]
}
_
=
GDAlertView
.
showActionSheet
(
viewController
:
self
.
viewController
,
title
:
nil
,
message
:
nil
,
sheetTitles
:
optionArr
,
cancleTitle
:
"取消"
,
sheetAction
:
{[
weak
self
]
index
in
if
index
==
0
{
if
index
==
0
{
GDRouter
.
UserZone
?
.
showReportVC
(
from
:
.
moment
,
uid
:
model
.
uid
,
nickname
:
self
?
.
nickname
.
value
)
GDRouter
.
UserZone
?
.
showReportVC
(
from
:
.
moment
,
uid
:
model
.
uid
,
nickname
:
self
?
.
nickname
.
value
)
}
else
{
guard
let
self
=
self
else
{
return
}
_
=
GDAlertView
.
showAlertView
(
viewController
:
UIViewController
.
topViewController
(),
title
:
"确定不再看
\(
self
.
nickname
.
value
??
""
)
?"
,
message
:
nil
,
confirmTitle
:
"确定"
,
cancleTitle
:
"取消"
,
confirmAction
:
{
if
let
uid
=
model
.
uid
{
// 写入uid
if
var
blackList
=
UserDefaults
.
standard
.
object
(
forKey
:
GDUserManagerPublicUDKey
.
mainpageBlackList
)
as?
[
String
]
{
blackList
.
append
(
uid
)
UserDefaults
.
standard
.
setValue
(
blackList
,
forKey
:
GDUserManagerPublicUDKey
.
mainpageBlackList
)
}
else
{
UserDefaults
.
standard
.
setValue
([
uid
],
forKey
:
GDUserManagerPublicUDKey
.
mainpageBlackList
)
}
}
self
.
viewModel
.
refreshMomentList
(
with
:
1
)
},
cancleAction
:
nil
)
}
}
},
cancleAction
:
{
},
cancleAction
:
{
...
...
Module/GDShowRoomModule/GDShowRoomModule/Features/Function/View/AudiencePanelView/GDLiveAudiencePanelView.swift
View file @
3a2d1c11
...
@@ -172,8 +172,10 @@ class GDLiveAudiencePanelView: BaseView {
...
@@ -172,8 +172,10 @@ class GDLiveAudiencePanelView: BaseView {
if
GDRouter
.
DataRouter
?
.
fightTeamEnable
.
value
==
true
{
if
GDRouter
.
DataRouter
?
.
fightTeamEnable
.
value
==
true
{
functionLine2Arr
.
append
(
.
fightTeam
)
functionLine2Arr
.
append
(
.
fightTeam
)
}
}
functionLine2Arr
.
append
(
.
welfareCenter
)
if
GDRouter
.
BaseBusinessRouter
?
.
isCurrentVersionVerified
.
value
==
false
{
functionLine2Arr
.
append
(
.
welfareCenter
)
}
functionLine2Arr
.
append
(
.
wearCenter
)
functionLine2Arr
.
append
(
.
wearCenter
)
functionLine2Arr
.
append
(
.
share
)
functionLine2Arr
.
append
(
.
share
)
...
...
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