添加多运行环境支持 #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();
fileResponse.key = (String) stringMap.get("key");
fileResponse.bucket = (String) stringMap.get("bucket");
fileResponse.size = (long) stringMap.get("fsize");
fileResponse.bucket = "qiniu";
fileResponse.size = 0;
fileResponse.hash = (String) stringMap.get("hash");
return fileResponse;
@@ -103,9 +103,9 @@ public class QiniuFileServiceImpl implements FileManager {
@SneakyThrows
@Override
public boolean deleteFile(String fileName) {
init();
Response response = bucketManager.delete(bucket, fileName);
return false;
return "".equals(response.bodyString());
}
private boolean continueFile(String key) {

View File

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