mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-15 13:17:21 +08:00
修复存储引擎编辑异常
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user