Commit abd4f392 authored by David黄金龙's avatar David黄金龙

个人 头像链接替换

parent 54458e9c
......@@ -186,7 +186,9 @@ class YHInformationAuthorizationStepOneViewController: YHBaseViewController {
self.photoImageView.image = result
self.viewModel.uploadImage(result, true) {[weak self] success, error in
guard let self = self else { return }
self.viewModel.model.avatar = success ?? ""
var replacedString = (success ?? "").getCdnUrl()
print(replacedString)
self.viewModel.model.avatar = replacedString
}
}
self.navigationController?.pushViewController(clipperVC, animated: true)
......
......@@ -164,7 +164,10 @@ class YHUserInfoSettingViewController: YHBaseViewController {
self.photoImageView.image = result
self.viewModel.uploadImage(result, true) {[weak self] success, error in
guard let self = self else { return }
self.headUrl = success ?? ""
let replacedString = (success ?? "").getCdnUrl()
print(replacedString)
self.headUrl = replacedString
}
}
self.navigationController?.pushViewController(clipperVC, animated: true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment