Commit 93eb6480 by liyanlin

文件名作为七牛云前缀,以便搜索

parent 410c2ebf
......@@ -138,8 +138,8 @@ public class CostFileUtil {
String secretKey = "yagRd-cBOVhkRGGT-o_reMqNVjI8_k7YwoTXkhrm";
String bucket = "bailun-data-center";
//默认不指定key的情况下,以文件内容的hash值作为文件名
String key = UidUtils.VM_ID + "-" + localFilePath.getName();
//七牛云文件名
String key = localFilePath.getName() + "-" + UidUtils.VM_ID + "-" + localFilePath.getName();
Auth auth = Auth.create(accessKey, secretKey);
String upToken = auth.uploadToken(bucket);
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment