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
54458e9c
Commit
54458e9c
authored
Sep 05, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
头像 地址替换 方便七鱼客服中展示用户自己头像
parent
ce3d3719
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
YHEditBaseUserInfoViewController.swift
...我的)/MyCard(我的名片)/C/YHEditBaseUserInfoViewController.swift
+4
-1
String+Extension.swift
galaxy/galaxy/Classes/Tools/Extention/String+Extension.swift
+7
-0
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/MyCard(我的名片)/C/YHEditBaseUserInfoViewController.swift
View file @
54458e9c
...
@@ -151,7 +151,10 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
...
@@ -151,7 +151,10 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
self
.
photoImageView
.
image
=
result
self
.
photoImageView
.
image
=
result
self
.
viewModel
.
uploadImage
(
result
,
true
)
{[
weak
self
]
success
,
error
in
self
.
viewModel
.
uploadImage
(
result
,
true
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
viewModel
.
model
.
avatar
=
success
??
""
var
replacedString
=
(
success
??
""
)
.
getCdnUrl
()
print
(
replacedString
)
viewModel
.
model
.
avatar
=
replacedString
if
self
.
viewModel
.
isCanNext
(
step
:
1
)
{
if
self
.
viewModel
.
isCanNext
(
step
:
1
)
{
nextButton
.
isEnabled
=
true
nextButton
.
isEnabled
=
true
nextButton
.
backgroundColor
=
UIColor
.
brandMainColor
nextButton
.
backgroundColor
=
UIColor
.
brandMainColor
...
...
galaxy/galaxy/Classes/Tools/Extention/String+Extension.swift
View file @
54458e9c
...
@@ -322,4 +322,11 @@ extension String {
...
@@ -322,4 +322,11 @@ extension String {
}
}
return
nil
return
nil
}
}
//头像使用cdn地址
func
getCdnUrl
()
->
String
{
var
replacedString
=
self
.
replacingOccurrences
(
of
:
"prod-bucket-v1-pub.oss-cn-shenzhen.aliyuncs.com"
,
with
:
"prod-cdn-pub.galaxy-immi.com"
)
replacedString
=
replacedString
.
replacingOccurrences
(
of
:
"test-bucket-v1-pub.oss-cn-shenzhen.aliyuncs.com"
,
with
:
"test-cdn-pub.galaxy-immi.com"
)
return
replacedString
}
}
}
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