添加多运行环境支持 #14

Open
xiaohai2271 wants to merge 36 commits from feat-multlyEnv#13 into master-old
2 changed files with 7 additions and 7 deletions
Showing only changes of commit 431ce8ac28 - Show all commits

View File

@@ -66,8 +66,8 @@ public class QiniuFileServiceImpl implements FileManager {
StringMap stringMap = response.jsonToMap(); StringMap stringMap = response.jsonToMap();
fileResponse.key = (String) stringMap.get("key"); fileResponse.key = (String) stringMap.get("key");
fileResponse.bucket = (String) stringMap.get("bucket"); fileResponse.bucket = "qiniu";
fileResponse.size = (long) stringMap.get("fsize"); fileResponse.size = 0;
fileResponse.hash = (String) stringMap.get("hash"); fileResponse.hash = (String) stringMap.get("hash");
return fileResponse; return fileResponse;
@@ -103,9 +103,9 @@ public class QiniuFileServiceImpl implements FileManager {
@SneakyThrows @SneakyThrows
@Override @Override
public boolean deleteFile(String fileName) { public boolean deleteFile(String fileName) {
init();
Response response = bucketManager.delete(bucket, fileName); Response response = bucketManager.delete(bucket, fileName);
return "".equals(response.bodyString());
return false;
} }
private boolean continueFile(String key) { private boolean continueFile(String key) {

View File

@@ -1,9 +1,9 @@
server.port=8081 server.port=8081
# 七牛的密钥配置 # 七牛的密钥配置
qiniu.accessKey= qiniu.accessKey=${QINIU_ACCESSKEY:null}
qiniu.secretKey= qiniu.secretKey=${QINIU_SECRETKEY:null}
qiniu.bucket= qiniu.bucket=xiaohai
# sitemap 存放地址 # sitemap 存放地址
sitemap.path= sitemap.path=
# 生成JWT时候的密钥 # 生成JWT时候的密钥