Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a19d172e
authored
Dec 01, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
feat: 上传oss url问题
parent
6a3e2db8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
server-common/src/main/java/com/makeit/oss/AliyunOSSRepository.java
server-web/src/main/resources/application-dev.yml
server-web/src/main/resources/application-test.yml
server-common/src/main/java/com/makeit/oss/AliyunOSSRepository.java
View file @
a19d172e
...
@@ -152,7 +152,7 @@ public class AliyunOSSRepository implements AccessoryRepository {
...
@@ -152,7 +152,7 @@ public class AliyunOSSRepository implements AccessoryRepository {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
logger
.
debug
(
"完成向aliyun-oss保存文件: {}"
,
System
.
currentTimeMillis
()
-
begin
);
logger
.
debug
(
"完成向aliyun-oss保存文件: {}"
,
System
.
currentTimeMillis
()
-
begin
);
return
endpoint
+
"/"
+
accessoryBaseDir
+
"/"
+
path
+
"/"
+
fileName
;
return
bucketName
+
"."
+
endpoint
+
"/"
+
accessoryBaseDir
+
"/"
+
path
+
"/"
+
fileName
;
}
}
/**
/**
...
...
server-web/src/main/resources/application-dev.yml
View file @
a19d172e
...
@@ -173,7 +173,7 @@ aliyun:
...
@@ -173,7 +173,7 @@ aliyun:
oss
:
oss
:
accessKey
:
LTAI5tMjaFCiaYYLmtCLiuMj
accessKey
:
LTAI5tMjaFCiaYYLmtCLiuMj
secretKey
:
Oq1925mQ8663nxaf83MyoOGAbVM71H
secretKey
:
Oq1925mQ8663nxaf83MyoOGAbVM71H
endpoint
:
kangyang-oss.
oss-cn-shenzhen.aliyuncs.com
endpoint
:
oss-cn-shenzhen.aliyuncs.com
bucket
:
kangyang-oss
bucket
:
kangyang-oss
baseDir
:
kangyang
baseDir
:
kangyang
...
...
server-web/src/main/resources/application-test.yml
View file @
a19d172e
...
@@ -162,7 +162,7 @@ aliyun:
...
@@ -162,7 +162,7 @@ aliyun:
oss
:
oss
:
accessKey
:
LTAI5tMjaFCiaYYLmtCLiuMj
accessKey
:
LTAI5tMjaFCiaYYLmtCLiuMj
secretKey
:
Oq1925mQ8663nxaf83MyoOGAbVM71H
secretKey
:
Oq1925mQ8663nxaf83MyoOGAbVM71H
endpoint
:
kangyang-oss.
oss-cn-shenzhen.aliyuncs.com
endpoint
:
oss-cn-shenzhen.aliyuncs.com
bucket
:
kangyang-oss
bucket
:
kangyang-oss
baseDir
:
kangyang
baseDir
:
kangyang
...
...
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