aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/UserService.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-04-25 18:53:05 +0800
committercrupest <crupest@outlook.com>2019-04-25 18:53:05 +0800
commit40a1e1d96940ae005db6467cd4207b25d6261837 (patch)
tree27fb5e962476667a4443f0160a4c75382caa4fb5 /Timeline/Services/UserService.cs
parentc66b2755ec10b8b23e9c491752b03a68c36c3eb5 (diff)
downloadtimeline-40a1e1d96940ae005db6467cd4207b25d6261837.tar.gz
timeline-40a1e1d96940ae005db6467cd4207b25d6261837.tar.bz2
timeline-40a1e1d96940ae005db6467cd4207b25d6261837.zip
Implement generate object get url in cos.
Diffstat (limited to 'Timeline/Services/UserService.cs')
-rw-r--r--Timeline/Services/UserService.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Timeline/Services/UserService.cs b/Timeline/Services/UserService.cs
index d1555660..4a47ca0f 100644
--- a/Timeline/Services/UserService.cs
+++ b/Timeline/Services/UserService.cs
@@ -301,11 +301,11 @@ namespace Timeline.Services
public async Task<string> GetAvatarUrl(string username)
{
- var exists = await _cosService.ObjectExists("avatar", username);
+ var exists = await _cosService.IsObjectExists("avatar", username);
if (exists)
- return _cosService.GetObjectUrl("avatar", username);
+ return _cosService.GenerateObjectGetUrl("avatar", username);
else
- return _cosService.GetObjectUrl("avatar", "__default");
+ return _cosService.GenerateObjectGetUrl("avatar", "__default");
}
}
}