Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
2778ddd2
Commit
2778ddd2
authored
Jun 07, 2025
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进入群聊以及点击头像都不让进入用户详情页、IM增加灰度控制
parent
e4576af6
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
18 deletions
+42
-18
TUIBaseChatViewController.h
TUIKit/TUIChat/UI_Classic/Chat/TUIBaseChatViewController.h
+1
-1
TUIBaseChatViewController.m
TUIKit/TUIChat/UI_Classic/Chat/TUIBaseChatViewController.m
+4
-1
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+8
-8
YHTencentDeskManager.swift
...les/ButlerServiceManager(银河管家)/YHTencentDeskManager.swift
+1
-1
YHMessageListVC.swift
...alaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
+24
-5
YHMessageSessionCell.swift
.../Classes/Modules/Message(消息)/V/YHMessageSessionCell.swift
+0
-1
YHUatHelper.swift
.../galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelper.swift
+3
-0
YHUatHelperViewModel.swift
...lasses/Modules/UatModule(灰度功能)/YHUatHelperViewModel.swift
+1
-1
No files found.
TUIKit/TUIChat/UI_Classic/Chat/TUIBaseChatViewController.h
View file @
2778ddd2
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
// 是否隐藏更多按钮
// 是否隐藏更多按钮
@property
(
nonatomic
,
assign
)
BOOL
needHideNaviMore
;
@property
(
nonatomic
,
assign
)
BOOL
needHideNaviMore
;
// 是否选中cell头像
// 是否选中cell头像
@property
(
nonatomic
,
assign
)
BOOL
needHide
CellAvatar
;
@property
(
nonatomic
,
assign
)
BOOL
needHide
ShowUserInfoPage
;
// 文件预览代理
// 文件预览代理
@property
(
nonatomic
,
weak
)
id
<
TUICustomOpenFileDelegate
>
filePreviewDelegate
;
@property
(
nonatomic
,
weak
)
id
<
TUICustomOpenFileDelegate
>
filePreviewDelegate
;
...
...
TUIKit/TUIChat/UI_Classic/Chat/TUIBaseChatViewController.m
View file @
2778ddd2
...
@@ -950,7 +950,7 @@ static CGRect gCustomTopViewRect;
...
@@ -950,7 +950,7 @@ static CGRect gCustomTopViewRect;
}
}
-
(
void
)
messageController
:
(
TUIBaseMessageController
*
)
controller
onSelectMessageAvatar
:
(
TUIMessageCell
*
)
cell
{
-
(
void
)
messageController
:
(
TUIBaseMessageController
*
)
controller
onSelectMessageAvatar
:
(
TUIMessageCell
*
)
cell
{
if
(
self
.
needHide
CellAvatar
)
{
if
(
self
.
needHide
ShowUserInfoPage
)
{
return
;
return
;
}
}
NSString
*
userID
=
nil
;
NSString
*
userID
=
nil
;
...
@@ -1464,6 +1464,9 @@ static CGRect gCustomTopViewRect;
...
@@ -1464,6 +1464,9 @@ static CGRect gCustomTopViewRect;
#pragma mark - TUIJoinGroupMessageCellDelegate
#pragma mark - TUIJoinGroupMessageCellDelegate
-
(
void
)
didTapOnRestNameLabel
:
(
TUIJoinGroupMessageCell
*
)
cell
withIndex
:
(
NSInteger
)
index
{
-
(
void
)
didTapOnRestNameLabel
:
(
TUIJoinGroupMessageCell
*
)
cell
withIndex
:
(
NSInteger
)
index
{
if
(
self
.
needHideShowUserInfoPage
)
{
return
;
}
NSString
*
userId
=
cell
.
joinData
.
userIDList
[
index
];
NSString
*
userId
=
cell
.
joinData
.
userIDList
[
index
];
[
self
getUserOrFriendProfileVCWithUserID
:
userId
[
self
getUserOrFriendProfileVCWithUserID
:
userId
...
...
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
2778ddd2
...
@@ -8510,7 +8510,7 @@
...
@@ -8510,7 +8510,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyTestEnv.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyTestEnv.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
3
;
CURRENT_PROJECT_VERSION
=
1
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
@@ -8537,7 +8537,7 @@
...
@@ -8537,7 +8537,7 @@
"$(inherited)"
,
"$(inherited)"
,
"@executable_path/Frameworks"
,
"@executable_path/Frameworks"
,
);
);
MARKETING_VERSION
=
2.2.
4
;
MARKETING_VERSION
=
2.2.
5
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
...
@@ -8658,7 +8658,7 @@
...
@@ -8658,7 +8658,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
3
;
CURRENT_PROJECT_VERSION
=
1
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
@@ -8685,7 +8685,7 @@
...
@@ -8685,7 +8685,7 @@
"$(inherited)"
,
"$(inherited)"
,
"@executable_path/Frameworks"
,
"@executable_path/Frameworks"
,
);
);
MARKETING_VERSION
=
2.2.
4
;
MARKETING_VERSION
=
2.2.
5
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
...
@@ -8868,7 +8868,7 @@
...
@@ -8868,7 +8868,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyDebug.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyDebug.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
3
;
CURRENT_PROJECT_VERSION
=
1
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
@@ -8895,7 +8895,7 @@
...
@@ -8895,7 +8895,7 @@
"$(inherited)"
,
"$(inherited)"
,
"@executable_path/Frameworks"
,
"@executable_path/Frameworks"
,
);
);
MARKETING_VERSION
=
2.2.
4
;
MARKETING_VERSION
=
2.2.
5
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
...
@@ -8918,7 +8918,7 @@
...
@@ -8918,7 +8918,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
3
;
CURRENT_PROJECT_VERSION
=
1
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
@@ -8945,7 +8945,7 @@
...
@@ -8945,7 +8945,7 @@
"$(inherited)"
,
"$(inherited)"
,
"@executable_path/Frameworks"
,
"@executable_path/Frameworks"
,
);
);
MARKETING_VERSION
=
2.2.
4
;
MARKETING_VERSION
=
2.2.
5
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
...
...
galaxy/galaxy/Classes/Modules/ButlerServiceManager(银河管家)/YHTencentDeskManager.swift
View file @
2778ddd2
...
@@ -83,7 +83,7 @@ extension YHTencentDeskManager {
...
@@ -83,7 +83,7 @@ extension YHTencentDeskManager {
/// 灰度打开
/// 灰度打开
func
isUatAllowed
()
->
Bool
{
func
isUatAllowed
()
->
Bool
{
let
allowed
=
YHUatHelper
.
shared
.
getUatModuleStatusBy
(
module
:
.
QiYu_Service
)
==
1
let
allowed
=
YHUatHelper
.
shared
.
getUatModuleStatusBy
(
module
:
.
Tx_IM
)
==
1
return
allowed
return
allowed
}
}
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
View file @
2778ddd2
...
@@ -28,6 +28,8 @@ class YHMessageListVC: YHBaseViewController {
...
@@ -28,6 +28,8 @@ class YHMessageListVC: YHBaseViewController {
var
isNotifyEnabled
=
false
var
isNotifyEnabled
=
false
private
var
oldImUat
:
Bool
=
false
private
lazy
var
previewFileTool
:
YHFilePreviewTool
=
{
private
lazy
var
previewFileTool
:
YHFilePreviewTool
=
{
let
tool
=
YHFilePreviewTool
(
targetVC
:
self
)
let
tool
=
YHFilePreviewTool
(
targetVC
:
self
)
return
tool
return
tool
...
@@ -108,7 +110,10 @@ class YHMessageListVC: YHBaseViewController {
...
@@ -108,7 +110,10 @@ class YHMessageListVC: YHBaseViewController {
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
setupUI
()
setupUI
()
setupMessageList
()
oldImUat
=
YHTencentDeskManager
.
shared
.
isUatAllowed
()
if
oldImUat
{
setupMessageList
()
}
}
}
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
...
@@ -155,6 +160,7 @@ class YHMessageListVC: YHBaseViewController {
...
@@ -155,6 +160,7 @@ class YHMessageListVC: YHBaseViewController {
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
checkNotificationPermisson
)
,
name
:
YhConstant
.
YhNotification
.
didReqeustNotifyPermissionNotification
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
checkNotificationPermisson
)
,
name
:
YhConstant
.
YhNotification
.
didReqeustNotifyPermissionNotification
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
didRefreshYinHeManagerUnreadMsg
)
,
name
:
YhConstant
.
YhNotification
.
didQiYuUnReadMsgCountChangeNotification
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
didRefreshYinHeManagerUnreadMsg
)
,
name
:
YhConstant
.
YhNotification
.
didQiYuUnReadMsgCountChangeNotification
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
imLoginSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didTxIMLoginSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
imLoginSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didTxIMLoginSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
didRevUatParam
)
,
name
:
YhConstant
.
YhNotification
.
didRevUatParam
,
object
:
nil
)
}
}
private
func
setupMessageList
()
{
private
func
setupMessageList
()
{
...
@@ -245,7 +251,11 @@ class YHMessageListVC: YHBaseViewController {
...
@@ -245,7 +251,11 @@ class YHMessageListVC: YHBaseViewController {
}
}
// 银河资讯
// 银河资讯
msgArr
.
append
(
self
.
viewModel
.
msgList
.
article
)
if
msgArr
.
count
>
0
{
msgArr
.
insert
(
self
.
viewModel
.
msgList
.
article
,
at
:
1
)
}
else
{
msgArr
.
insert
(
self
.
viewModel
.
msgList
.
article
,
at
:
0
)
}
if
success
{
if
success
{
var
hasUnreadMsg
=
false
var
hasUnreadMsg
=
false
...
@@ -316,6 +326,13 @@ class YHMessageListVC: YHBaseViewController {
...
@@ -316,6 +326,13 @@ class YHMessageListVC: YHBaseViewController {
}
}
}
}
@objc
private
func
didRevUatParam
()
{
guard
oldImUat
!=
YHTencentDeskManager
.
shared
.
isUatAllowed
(),
YHTencentDeskManager
.
shared
.
isUatAllowed
()
else
{
return
}
setupMessageList
()
}
func
requestOrderStatus
(
callback
:
((
_
status
:
Int
)
->
Void
)?)
{
func
requestOrderStatus
(
callback
:
((
_
status
:
Int
)
->
Void
)?)
{
// 先获取订单列表
// 先获取订单列表
self
.
serviceCenterMainViewModel
.
getContactList
{
self
.
serviceCenterMainViewModel
.
getContactList
{
...
@@ -499,7 +516,7 @@ extension YHMessageListVC {
...
@@ -499,7 +516,7 @@ extension YHMessageListVC {
vc
.
navigationItem
.
rightBarButtonItems
=
nil
vc
.
navigationItem
.
rightBarButtonItems
=
nil
vc
.
needHideNaviMore
=
true
vc
.
needHideNaviMore
=
true
vc
.
filePreviewDelegate
=
self
vc
.
filePreviewDelegate
=
self
vc
.
needHide
CellAvatar
=
true
vc
.
needHide
ShowUserInfoPage
=
true
}
}
}
}
...
@@ -584,7 +601,7 @@ extension YHMessageListVC: UITableViewDelegate, UITableViewDataSource {
...
@@ -584,7 +601,7 @@ extension YHMessageListVC: UITableViewDelegate, UITableViewDataSource {
vc
.
navigationItem
.
rightBarButtonItems
=
nil
vc
.
navigationItem
.
rightBarButtonItems
=
nil
vc
.
needHideNaviMore
=
true
vc
.
needHideNaviMore
=
true
vc
.
filePreviewDelegate
=
self
vc
.
filePreviewDelegate
=
self
vc
.
needHide
CellAvatar
=
true
vc
.
needHide
ShowUserInfoPage
=
true
}
}
return
return
}
}
...
@@ -697,7 +714,9 @@ extension YHMessageListVC: YHMessageListDelegate {
...
@@ -697,7 +714,9 @@ extension YHMessageListVC: YHMessageListDelegate {
}
}
msgArr
.
removeAll
(
where
:
{
$0
.
type
==
YHMessageType
.
txIM
.
rawValue
})
msgArr
.
removeAll
(
where
:
{
$0
.
type
==
YHMessageType
.
txIM
.
rawValue
})
convertedItems
.
sort
{
$0
.
lastMessageTime
>
$1
.
lastMessageTime
}
convertedItems
.
sort
{
$0
.
lastMessageTime
>
$1
.
lastMessageTime
}
if
msgArr
.
count
>
0
{
if
msgArr
.
count
>
1
{
msgArr
.
insert
(
contentsOf
:
convertedItems
,
at
:
2
)
}
else
if
msgArr
.
count
>
0
{
msgArr
.
insert
(
contentsOf
:
convertedItems
,
at
:
1
)
msgArr
.
insert
(
contentsOf
:
convertedItems
,
at
:
1
)
}
else
{
}
else
{
msgArr
.
insert
(
contentsOf
:
convertedItems
,
at
:
0
)
msgArr
.
insert
(
contentsOf
:
convertedItems
,
at
:
0
)
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/V/YHMessageSessionCell.swift
View file @
2778ddd2
...
@@ -71,7 +71,6 @@ class YHMessageSessionCell: UITableViewCell {
...
@@ -71,7 +71,6 @@ class YHMessageSessionCell: UITableViewCell {
self
.
iconContentView
.
backgroundColor
=
UIColor
(
hex
:
0xF0F5FF
)
self
.
iconContentView
.
backgroundColor
=
UIColor
(
hex
:
0xF0F5FF
)
}
else
if
model
.
type
==
YHMessageType
.
txIM
.
rawValue
{
}
else
if
model
.
type
==
YHMessageType
.
txIM
.
rawValue
{
// self.iconImgView.kf.setImage(with: URL(string: model.avatar), placeholder: model.avatarImage ?? UIImage(named: "people_head_default"))
updatePortrait
(
convData
:
model
)
updatePortrait
(
convData
:
model
)
}
}
...
...
galaxy/galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelper.swift
View file @
2778ddd2
...
@@ -41,6 +41,7 @@ enum YHUatModules: Int {
...
@@ -41,6 +41,7 @@ enum YHUatModules: Int {
case
Update_Suggest
=
9
// 更新-建议更新弹窗
case
Update_Suggest
=
9
// 更新-建议更新弹窗
case
QiYu_Service
=
10
// 七鱼智能客服入口
case
QiYu_Service
=
10
// 七鱼智能客服入口
case
Tx_IM
=
11
// 腾讯IM
// 1-可见 2-不可见 3-新界面
// 1-可见 2-不可见 3-新界面
var
defaultValue
:
Int
{
var
defaultValue
:
Int
{
...
@@ -66,6 +67,8 @@ enum YHUatModules: Int {
...
@@ -66,6 +67,8 @@ enum YHUatModules: Int {
return
2
return
2
case
.
QiYu_Service
:
case
.
QiYu_Service
:
return
1
return
1
case
.
Tx_IM
:
return
1
default
:
default
:
return
2
return
2
}
}
...
...
galaxy/galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelperViewModel.swift
View file @
2778ddd2
...
@@ -60,7 +60,7 @@ extension YHUatHelperViewModel {
...
@@ -60,7 +60,7 @@ extension YHUatHelperViewModel {
return
return
}
}
// let params: [String] = ["1", "2","3", "4","5","6","9","10"]
// let params: [String] = ["1", "2","3", "4","5","6","9","10"]
let
params
:
[
String
]
=
[
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
,
"9"
]
let
params
:
[
String
]
=
[
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
,
"9"
,
"11"
]
var
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Uat
.
uatListApi
var
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Uat
.
uatListApi
for
(
index
,
item
)
in
params
.
enumerated
()
{
for
(
index
,
item
)
in
params
.
enumerated
()
{
if
index
==
0
{
if
index
==
0
{
...
...
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