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
1acb2af8
Commit
1acb2af8
authored
Jun 10, 2025
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决图标显示异常,替换默认图标
parent
d3c55158
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
64 additions
and
16 deletions
+64
-16
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+8
-0
YHMessageListVC.swift
...alaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
+4
-14
YHMessageSessionCell.swift
.../Classes/Modules/Message(消息)/V/YHMessageSessionCell.swift
+4
-2
manifest.plist
...y/Res/TUICoreCustomTheme.bundle/enterprise/manifest.plist
+44
-0
bg.png
.../Res/TUICoreCustomTheme.bundle/enterprise/resource/bg.png
+0
-0
default_c2c_head@2x.png
...mTheme.bundle/enterprise/resource/default_c2c_head@2x.png
+0
-0
default_group_head@2x.png
...heme.bundle/enterprise/resource/default_group_head@2x.png
+0
-0
default_group_head_avchatroom@2x.png
.../enterprise/resource/default_group_head_avchatroom@2x.png
+0
-0
default_group_head_community@2x.png
...e/enterprise/resource/default_group_head_community@2x.png
+0
-0
default_group_head_meeting@2x.png
...dle/enterprise/resource/default_group_head_meeting@2x.png
+0
-0
default_group_head_public@2x.png
...ndle/enterprise/resource/default_group_head_public@2x.png
+0
-0
nav_back@3x.png
...oreCustomTheme.bundle/enterprise/resource/nav_back@3x.png
+0
-0
nav_more@2x.png
...oreCustomTheme.bundle/enterprise/resource/nav_more@2x.png
+0
-0
service_more_video_call@3x.png
...bundle/enterprise/resource/service_more_video_call@3x.png
+0
-0
service_more_voice_call@3x.png
...bundle/enterprise/resource/service_more_voice_call@3x.png
+0
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
1acb2af8
...
...
@@ -79,6 +79,7 @@
043671472D6C3ED100E8D9BA
/* YHMembershipGrowthGuideView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
043671462D6C3ED100E8D9BA
/* YHMembershipGrowthGuideView.swift */
;
};
043F0EB22DE85717003354EB
/* YHTUIMessageListManager.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
043F0EB12DE85717003354EB
/* YHTUIMessageListManager.swift */
;
};
043F0EB32DE85717003354EB
/* YHTencentDeskManager.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
043F0EB02DE85717003354EB
/* YHTencentDeskManager.swift */
;
};
043F0EB52DF85BC5003354EB
/* TUICoreCustomTheme.bundle in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
043F0EB42DF85BC5003354EB
/* TUICoreCustomTheme.bundle */
;
};
045647572D7976880001D831
/* YHHKVisaRenewalApplicationVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045647562D7976880001D831
/* YHHKVisaRenewalApplicationVC.swift */
;
};
045647592D79877E0001D831
/* YHHKVisaRenewalApplicationHeader.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045647582D79877E0001D831
/* YHHKVisaRenewalApplicationHeader.swift */
;
};
045C0F7F2D12CA5F00BD2DC0
/* submit_page_scroll.gif in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045C0F4F2D12CA5E00BD2DC0
/* submit_page_scroll.gif */
;
};
...
...
@@ -1389,6 +1390,7 @@
043671462D6C3ED100E8D9BA
/* YHMembershipGrowthGuideView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMembershipGrowthGuideView.swift
;
sourceTree
=
"<group>"
;
};
043F0EB02DE85717003354EB
/* YHTencentDeskManager.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHTencentDeskManager.swift
;
sourceTree
=
"<group>"
;
};
043F0EB12DE85717003354EB
/* YHTUIMessageListManager.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHTUIMessageListManager.swift
;
sourceTree
=
"<group>"
;
};
043F0EB42DF85BC5003354EB
/* TUICoreCustomTheme.bundle */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"wrapper.plug-in"
;
path
=
TUICoreCustomTheme.bundle
;
sourceTree
=
"<group>"
;
};
045647562D7976880001D831
/* YHHKVisaRenewalApplicationVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHKVisaRenewalApplicationVC.swift
;
sourceTree
=
"<group>"
;
};
045647582D79877E0001D831
/* YHHKVisaRenewalApplicationHeader.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHKVisaRenewalApplicationHeader.swift
;
sourceTree
=
"<group>"
;
};
045C0A142D12CA5E00BD2DC0
/* YHBaseViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHBaseViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -6360,6 +6362,7 @@
045C0F772D12CA5E00BD2DC0
/* Res */
=
{
isa
=
PBXGroup
;
children
=
(
043F0EB42DF85BC5003354EB
/* TUICoreCustomTheme.bundle */
,
04FE44D32DDC766D009BB247
/* TUIChatCustomTheme.bundle */
,
045C0F4C2D12CA5E00BD2DC0
/* Font */
,
045C0F502D12CA5E00BD2DC0
/* gif */
,
...
...
@@ -7074,6 +7077,7 @@
045C0F982D12CA5F00BD2DC0
/* AlibabaPuHuiTi-Bold.ttf in Resources */
,
045C0F992D12CA5F00BD2DC0
/* AlimamaShuHeiTi-Bold.ttf in Resources */
,
045C0F9A2D12CA5F00BD2DC0
/* shouye.json in Resources */
,
043F0EB52DF85BC5003354EB
/* TUICoreCustomTheme.bundle in Resources */
,
045C0F9B2D12CA5F00BD2DC0
/* tab_ai.json in Resources */
,
045C0F9C2D12CA5F00BD2DC0
/* shipin.json in Resources */
,
045C0F9D2D12CA5F00BD2DC0
/* Launch Screen.storyboard in Resources */
,
...
...
galaxy/galaxy/AppDelegate.swift
View file @
1acb2af8
...
...
@@ -435,5 +435,13 @@ extension AppDelegate {
TUIThemeManager
.
share
()
.
registerThemeResourcePath
(
customChatThemePath
,
for
:
.
chat
)
// 应用主题,根据 themeID 对 TUIChat 设置主题
TUIThemeManager
.
share
()
.
applyTheme
(
"enterprise"
,
for
:
.
chat
)
// 自定义修改 TUICore 组件的主题 - 在主题资源包中新增了一套主题
guard
let
customCoreThemePath
=
Bundle
.
main
.
path
(
forResource
:
"TUICoreCustomTheme"
,
ofType
:
"bundle"
)
else
{
return
}
TUIThemeManager
.
share
()
.
registerThemeResourcePath
(
customCoreThemePath
,
for
:
.
core
)
// 应用主题,根据 themeID 对 TUICore 设置主题
TUIThemeManager
.
share
()
.
applyTheme
(
"enterprise"
,
for
:
.
core
)
}
}
galaxy/galaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
View file @
1acb2af8
...
...
@@ -134,7 +134,7 @@ class YHMessageListVC: YHBaseViewController {
// 银河管家 始终放在第一位
if
YHButlerServiceManager
.
shared
.
isUatAllowed
()
{
msgArr
.
insert
(
self
.
managerSession
,
at
:
0
)
msgArr
.
append
(
self
.
managerSession
)
}
self
.
tableView
.
reloadData
()
...
...
@@ -247,15 +247,11 @@ class YHMessageListVC: YHBaseViewController {
self
.
managerSession
.
lastMessage
=
lastMsg
.
content
self
.
managerSession
.
lastMessageTime
=
Int64
(
lastMsg
.
timeStamp
)
}
msgArr
.
insert
(
self
.
managerSession
,
at
:
0
)
msgArr
.
append
(
self
.
managerSession
)
}
// 银河资讯
if
msgArr
.
count
>
0
{
msgArr
.
insert
(
self
.
viewModel
.
msgList
.
article
,
at
:
1
)
}
else
{
msgArr
.
insert
(
self
.
viewModel
.
msgList
.
article
,
at
:
0
)
}
msgArr
.
append
(
self
.
viewModel
.
msgList
.
article
)
if
success
{
var
hasUnreadMsg
=
false
...
...
@@ -714,13 +710,7 @@ extension YHMessageListVC: YHMessageListDelegate {
}
msgArr
.
removeAll
(
where
:
{
$0
.
type
==
YHMessageType
.
txIM
.
rawValue
})
convertedItems
.
sort
{
$0
.
lastMessageTime
>
$1
.
lastMessageTime
}
if
msgArr
.
count
>
1
{
msgArr
.
insert
(
contentsOf
:
convertedItems
,
at
:
2
)
}
else
if
msgArr
.
count
>
0
{
msgArr
.
insert
(
contentsOf
:
convertedItems
,
at
:
1
)
}
else
{
msgArr
.
insert
(
contentsOf
:
convertedItems
,
at
:
0
)
}
msgArr
.
insert
(
contentsOf
:
convertedItems
,
at
:
0
)
tableView
.
reloadData
()
}
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/V/YHMessageSessionCell.swift
View file @
1acb2af8
...
...
@@ -21,6 +21,7 @@ class YHMessageSessionCell: UITableViewCell {
var
detailLabel
:
UILabel
!
var
timeLabel
:
UILabel
!
var
bottomLineView
:
UIView
!
private
var
currentGroupId
:
String
?
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
...
...
@@ -135,6 +136,7 @@ class YHMessageSessionCell: UITableViewCell {
private
func
updatePortrait
(
convData
:
YHMessageInfoModel
)
{
if
!
convData
.
groupID
.
isEmpty
{
currentGroupId
=
convData
.
groupID
// Group avatar
if
!
convData
.
avatar
.
isEmpty
{
// Group avatar has been manually set externally
...
...
@@ -147,7 +149,7 @@ class YHMessageSessionCell: UITableViewCell {
TUIGroupAvatar
.
getCacheGroupAvatar
(
convData
.
groupID
)
{
[
weak
self
]
(
avatar
,
callbackGroupID
)
in
guard
let
self
=
self
else
{
return
}
if
callbackGroupID
==
convData
.
groupID
{
if
callbackGroupID
==
self
.
currentGroupId
{
if
let
avatar
=
avatar
{
// Cache hit
self
.
iconImgView
.
image
=
avatar
...
...
@@ -158,7 +160,7 @@ class YHMessageSessionCell: UITableViewCell {
TUIGroupAvatar
.
fetchGroupAvatars
(
convData
.
groupID
,
placeholder
:
placeholderImage
)
{
[
weak
self
]
(
success
,
image
,
fetchGroupID
)
in
guard
let
self
=
self
else
{
return
}
if
fetchGroupID
==
convData
.
groupID
{
if
fetchGroupID
==
self
.
currentGroupId
{
let
placeholder
=
success
?
image
:
TUIConfig
.
default
()
.
getGroupAvatarImage
(
byGroupType
:
convData
.
groupType
)
self
.
iconImgView
.
image
=
placeholder
}
...
...
galaxy/galaxy/Res/TUICoreCustomTheme.bundle/enterprise/manifest.plist
0 → 100644
View file @
1acb2af8
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
id
<
/k
e
y
>
<
string
>
enterprise
<
/string
>
<
k
e
y
>
name
<
/k
e
y
>
<
string
>
企业
<
/string
>
<
k
e
y
>
name_en
<
/k
e
y
>
<
string
>
Enterprise
<
/string
>
<
k
e
y
>
primary_color
<
/k
e
y
>
<
string
>
#
FFFFFF
<
/string
>
<
k
e
y
>
primary_bg_color
<
/k
e
y
>
<
string
>
#
F2F3F5
<
/string
>
<
k
e
y
>
primary_theme_color
<
/k
e
y
>
<
string
>
#
147AFF
<
/string
>
<
k
e
y
>
common_switch_on_color
<
/k
e
y
>
<
string
>
#
34C759
<
/string
>
<
k
e
y
>
head_bg_gradient_start_color
<
/k
e
y
>
<
string
>
#
EBF0F6
<
/string
>
<
k
e
y
>
head_bg_gradient_end_color
<
/k
e
y
>
<
string
>
#
EBF0F6
<
/string
>
<
k
e
y
>
default_group_head_public_img
<
/k
e
y
>
<
string
>
default_group_head_public.png
<
/string
>
<
k
e
y
>
default_group_head_meeting_img
<
/k
e
y
>
<
string
>
default_group_head_meeting.png
<
/string
>
<
k
e
y
>
default_group_head_avchatroom_img
<
/k
e
y
>
<
string
>
default_group_head_avchatroom.png
<
/string
>
<
k
e
y
>
default_group_head_community_img
<
/k
e
y
>
<
string
>
default_group_head_community.png
<
/string
>
<
k
e
y
>
default_group_head_img
<
/k
e
y
>
<
string
>
default_group_head.png
<
/string
>
<
k
e
y
>
default_c2c_head_img
<
/k
e
y
>
<
string
>
default_c2c_head.png
<
/string
>
<
k
e
y
>
search_textfield_bg_color
<
/k
e
y
>
<
string
>
#
FEFEFE
<
/string
>
<
k
e
y
>
service_more_video_call_img
<
/k
e
y
>
<
string
>
service_more_video_call.png
<
/string
>
<
k
e
y
>
service_more_voice_call_img
<
/k
e
y
>
<
string
>
service_more_voice_call.png
<
/string
>
<
k
e
y
>
nav_back_img
<
/k
e
y
>
<
string
>
nav_back.png
<
/string
>
<
/
d
i
c
t
>
<
/plist
>
galaxy/galaxy/Res/TUICoreCustomTheme.bundle/enterprise/resource/bg.png
0 → 100644
View file @
1acb2af8
10.7 KB
galaxy/galaxy/Res/TUICoreCustomTheme.bundle/enterprise/resource/default_c2c_head@2x.png
0 → 100644
View file @
1acb2af8
10.2 KB
galaxy/galaxy/Res/TUICoreCustomTheme.bundle/enterprise/resource/default_group_head@2x.png
0 → 100644
View file @
1acb2af8
10.2 KB
galaxy/galaxy/Res/TUICoreCustomTheme.bundle/enterprise/resource/default_group_head_avchatroom@2x.png
0 → 100644
View file @
1acb2af8
2.08 KB
galaxy/galaxy/Res/TUICoreCustomTheme.bundle/enterprise/resource/default_group_head_community@2x.png
0 → 100644
View file @
1acb2af8
3.82 KB
galaxy/galaxy/Res/TUICoreCustomTheme.bundle/enterprise/resource/default_group_head_meeting@2x.png
0 → 100644
View file @
1acb2af8
2.62 KB
galaxy/galaxy/Res/TUICoreCustomTheme.bundle/enterprise/resource/default_group_head_public@2x.png
0 → 100644
View file @
1acb2af8
10.2 KB
galaxy/galaxy/Res/TUICoreCustomTheme.bundle/enterprise/resource/nav_back@3x.png
0 → 100644
View file @
1acb2af8
1.09 KB
galaxy/galaxy/Res/TUICoreCustomTheme.bundle/enterprise/resource/nav_more@2x.png
0 → 100644
View file @
1acb2af8
1.83 KB
galaxy/galaxy/Res/TUICoreCustomTheme.bundle/enterprise/resource/service_more_video_call@3x.png
0 → 100644
View file @
1acb2af8
3.48 KB
galaxy/galaxy/Res/TUICoreCustomTheme.bundle/enterprise/resource/service_more_voice_call@3x.png
0 → 100644
View file @
1acb2af8
4.75 KB
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