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
91d73bab
Commit
91d73bab
authored
Oct 15, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 加桶
parent
42b337f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
String+Extension.swift
galaxy/galaxy/Classes/Tools/Extention/String+Extension.swift
+1
-0
YHOSSManager.swift
galaxy/galaxy/Classes/Tools/Upload/YHOSSManager.swift
+2
-0
No files found.
galaxy/galaxy/Classes/Tools/Extention/String+Extension.swift
View file @
91d73bab
...
...
@@ -351,6 +351,7 @@ extension String {
func
getPrivateUrl
()
->
String
{
var
replacedString
=
self
.
replacingOccurrences
(
of
:
"prod-bucket-v1.oss-cn-shenzhen.aliyuncs.com"
,
with
:
"prod-cdn.galaxy-immi.com"
)
replacedString
=
replacedString
.
replacingOccurrences
(
of
:
"test-bucket-v1.oss-cn-shenzhen.aliyuncs.com"
,
with
:
"test-cdn.galaxy-immi.com"
)
replacedString
=
replacedString
.
replacingOccurrences
(
of
:
"galaxy-filecenter.oss-cn-shenzhen.aliyuncs.com"
,
with
:
"cdn-oss-galaxy-filecenter.galaxy-immi.com"
)
return
replacedString
}
}
galaxy/galaxy/Classes/Tools/Upload/YHOSSManager.swift
View file @
91d73bab
...
...
@@ -289,6 +289,8 @@ class YHOSSManager: NSObject, URLSessionDelegate {
return
"prod-bucket-v1"
}
else
if
url
.
contains
(
"prod-cdn-pub.galaxy-immi.com"
)
{
return
"prod-bucket-v1-pub"
}
else
if
url
.
contains
(
"galaxy-filecenter.galaxy-immi.com"
)
{
return
"galaxy-filecenter"
}
else
{
#if DEBUG
printLog
(
"OSS找不到正确的Bucket"
)
...
...
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