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
commit86e2384b8a186234a76611b7cbd505ad4f7dbd63 (patch)
tree27fb5e962476667a4443f0160a4c75382caa4fb5 /Timeline/Services/UserService.cs
parente241dd42b406bdc418bb487d503d65e5b207deb8 (diff)
downloadtimeline-86e2384b8a186234a76611b7cbd505ad4f7dbd63.tar.gz
timeline-86e2384b8a186234a76611b7cbd505ad4f7dbd63.tar.bz2
timeline-86e2384b8a186234a76611b7cbd505ad4f7dbd63.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");
}
}
}