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
0b397d4c
Commit
0b397d4c
authored
Oct 10, 2025
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IM相关调整
parent
4fa16fab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
11 deletions
+29
-11
YHTencentDeskManager.swift
...les/ButlerServiceManager(银河管家)/YHTencentDeskManager.swift
+2
-2
YHResourceViewController.swift
...mmunity(社区)/Resource(资源)/C/YHResourceViewController.swift
+12
-1
YHResourceViewModel.swift
...s/Community(社区)/Resource(资源)/VM/YHResourceViewModel.swift
+15
-8
No files found.
galaxy/galaxy/Classes/Modules/ButlerServiceManager(银河管家)/YHTencentDeskManager.swift
View file @
0b397d4c
...
@@ -41,9 +41,9 @@ class YHTencentDeskManager: NSObject {
...
@@ -41,9 +41,9 @@ class YHTencentDeskManager: NSObject {
/// 需要隐藏已读未读
/// 需要隐藏已读未读
TUIConfig
.
default
()
.
needHideReadReceipt
=
true
TUIConfig
.
default
()
.
needHideReadReceipt
=
true
/// 需要隐藏聊天页点击用户头像显示用户信息
/// 需要隐藏聊天页点击用户头像显示用户信息
TUIChatConfig
.
default
()
.
needHideShowUserInfoPage
=
fals
e
TUIChatConfig
.
default
()
.
needHideShowUserInfoPage
=
tru
e
/// 需要隐藏显示聊天页rightBarButton按钮
/// 需要隐藏显示聊天页rightBarButton按钮
TUIChatConfig
.
default
()
.
needHideNaviMore
=
fals
e
TUIChatConfig
.
default
()
.
needHideNaviMore
=
tru
e
}
}
func
loginSDK
()
{
func
loginSDK
()
{
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Resource(资源)/C/YHResourceViewController.swift
View file @
0b397d4c
...
@@ -502,7 +502,18 @@ private extension YHResourceViewController {
...
@@ -502,7 +502,18 @@ private extension YHResourceViewController {
guard
let
self
=
self
else
{
guard
let
self
=
self
else
{
return
return
}
}
self
.
messageHandler
.
gotoChatVC
(
senderID
:
""
)
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
getDemandYhId
{
[
weak
self
]
id
in
guard
let
self
=
self
else
{
return
}
YHHUD
.
hide
()
if
id
.
isEmpty
{
YHHUD
.
flash
(
message
:
"获取银河ID失败"
)
return
}
self
.
messageHandler
.
gotoChatVC
(
senderID
:
id
)
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Resource(资源)/VM/YHResourceViewModel.swift
View file @
0b397d4c
...
@@ -161,13 +161,20 @@ class YHResourceViewModel: NSObject {
...
@@ -161,13 +161,20 @@ class YHResourceViewModel: NSObject {
}
}
}
}
/// 切换收藏状态(如果有收藏功能的话)
func
getDemandYhId
(
callback
:
@escaping
(
String
)
->
Void
)
{
/// - Parameters:
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Resource
.
yhManagerId
+
"?mode=1"
/// - resourceId: 资源ID
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
)
{
json
,
_
in
/// - completion: 完成回调
if
json
.
code
==
200
{
func
toggleFavorite
(
resourceId
:
String
,
completion
:
@escaping
(
Bool
,
String
?)
->
Void
)
{
guard
let
dic
=
json
.
data
?
.
peel
as?
[
String
:
Any
],
let
result
=
ActiticyIdModel
.
deserialize
(
from
:
dic
)
else
{
// TODO: 如果后端提供收藏接口,在这里实现
return
// 目前暂时不支持收藏功能
}
completion
(
false
,
"暂不支持收藏功能"
)
callback
(
result
.
yh_id
)
}
else
{
callback
(
""
)
}
}
failBlock
:
{
_
in
callback
(
""
)
}
}
}
}
}
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