Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
bailuntec-cost
Commits
93eb6480
Commit
93eb6480
authored
Aug 16, 2021
by
liyanlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件名作为七牛云前缀,以便搜索
parent
410c2ebf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
CostFileUtil.java
...in/java/com/blt/other/module/cost/utils/CostFileUtil.java
+2
-2
No files found.
cost-service/src/main/java/com/blt/other/module/cost/utils/CostFileUtil.java
View file @
93eb6480
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment