修复存储引擎编辑异常

This commit is contained in:
TinyAnts
2022-06-24 10:42:26 +08:00
parent 2f7361c2dd
commit 52d2aa793f
4 changed files with 12 additions and 10 deletions

View File

@@ -35,8 +35,8 @@ public class AliyunStorage {
*/
public OSS ossClient() {
String endpoint = "https://oss-cn-shenzhen.aliyuncs.com";
String accessKeyId = this.config.get("access_key");
String accessKeySecret = this.config.get("secret_key");
String accessKeyId = this.config.get("accessKey");
String accessKeySecret = this.config.get("secretKey");
return new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);
}

View File

@@ -39,8 +39,8 @@ public class QcloudStorage {
* @return String
*/
public COSClient cosClient() {
String secretId = this.config.get("access_key");
String secretKey = this.config.get("secret_key");
String secretId = this.config.get("accessKey");
String secretKey = this.config.get("secretKey");
COSCredentials cred = new BasicCOSCredentials(secretId, secretKey);
Region region = new Region(this.config.get("region"));
ClientConfig clientConfig = new ClientConfig(region);

View File

@@ -37,8 +37,8 @@ public class QiniuStorage {
* @return String
*/
public String upToken() {
String accessKey = this.config.get("access_key");
String secretKey = this.config.get("secret_key");
String accessKey = this.config.get("accessKey");
String secretKey = this.config.get("secretKey");
String bucket = this.config.get("bucket");
Auth auth = Auth.create(accessKey, secretKey);
return auth.uploadToken(bucket);