diff options
author | crupest <crupest@outlook.com> | 2019-04-23 00:14:35 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-04-23 00:14:35 +0800 |
commit | ec31ef8e58928ce16cee7a0a57322fd466667649 (patch) | |
tree | 99754727d79f8ae27c96f35e2541d51be780deb4 /Timeline/Services/UserService.cs | |
parent | 47c38d0949868a7af433fae57d2ddf176e8d429a (diff) | |
download | timeline-ec31ef8e58928ce16cee7a0a57322fd466667649.tar.gz timeline-ec31ef8e58928ce16cee7a0a57322fd466667649.tar.bz2 timeline-ec31ef8e58928ce16cee7a0a57322fd466667649.zip |
Remove qcloud cs sdk. I will write one by myself.
Develop signature algorithm.
Diffstat (limited to 'Timeline/Services/UserService.cs')
-rw-r--r-- | Timeline/Services/UserService.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Timeline/Services/UserService.cs b/Timeline/Services/UserService.cs index a444d434..d1555660 100644 --- a/Timeline/Services/UserService.cs +++ b/Timeline/Services/UserService.cs @@ -150,9 +150,9 @@ namespace Timeline.Services private readonly DatabaseContext _databaseContext; private readonly IJwtService _jwtService; private readonly IPasswordService _passwordService; - private readonly ITencentCloudCosService _cosService; + private readonly IQCloudCosService _cosService; - public UserService(ILogger<UserService> logger, DatabaseContext databaseContext, IJwtService jwtService, IPasswordService passwordService, ITencentCloudCosService cosService) + public UserService(ILogger<UserService> logger, DatabaseContext databaseContext, IJwtService jwtService, IPasswordService passwordService, IQCloudCosService cosService) { _logger = logger; _databaseContext = databaseContext; @@ -301,7 +301,7 @@ namespace Timeline.Services public async Task<string> GetAvatarUrl(string username) { - var exists = await _cosService.Exists("avatar", username); + var exists = await _cosService.ObjectExists("avatar", username); if (exists) return _cosService.GetObjectUrl("avatar", username); else |