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
8e6df1b0
Commit
8e6df1b0
authored
Aug 18, 2021
by
liyanlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改七牛云地址及命名空间
parent
0db0bd60
Hide 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 @
8e6df1b0
...
...
@@ -122,7 +122,7 @@ public class CostFileUtil {
public
static
String
qiniuUpload
(
MultipartFile
file
)
throws
IOException
{
File
tempFile
=
File
.
createTempFile
(
UidUtils
.
VM_ID
+
"fee-original"
,
file
.
getOriginalFilename
().
replaceAll
(
"_"
,
""
));
file
.
transferTo
(
tempFile
);
String
path
=
"http://
dcfil
e.blsct.com/"
+
qiniuUpload
(
tempFile
);
String
path
=
"http://
cost-servic
e.blsct.com/"
+
qiniuUpload
(
tempFile
);
tempFile
.
deleteOnExit
();
return
path
;
}
...
...
@@ -136,7 +136,7 @@ public class CostFileUtil {
//3、生成上传凭证,然后准备上传
String
accessKey
=
"QSvtvN4Ons1CiNzaMGqx8XmDaiM1L0ZqSwJ2YoTn"
;
String
secretKey
=
"yagRd-cBOVhkRGGT-o_reMqNVjI8_k7YwoTXkhrm"
;
String
bucket
=
"
bailun-data-center
"
;
String
bucket
=
"
cost-service
"
;
//七牛云文件名
String
key
=
localFilePath
.
getName
()
+
"-"
+
UidUtils
.
VM_ID
+
"-"
+
localFilePath
.
getName
();
...
...
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