Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
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
黄奎
mall.oytour.com
Commits
fc8c509a
Commit
fc8c509a
authored
Dec 13, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
a8a04482
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
TencentOss.cs
Mall.ThirdCore/Oss/TencentOss.cs
+2
-1
No files found.
Mall.ThirdCore/Oss/TencentOss.cs
View file @
fc8c509a
...
@@ -76,7 +76,8 @@ namespace Mall.ThirdCore.Oss
...
@@ -76,7 +76,8 @@ namespace Mall.ThirdCore.Oss
{
{
string
fileExtention
=
System
.
IO
.
Path
.
GetExtension
(
filePath
);
string
fileExtention
=
System
.
IO
.
Path
.
GetExtension
(
filePath
);
string
bucket
=
this
.
bucketName
;
//存储桶,格式:BucketName-APPID
string
bucket
=
this
.
bucketName
;
//存储桶,格式:BucketName-APPID
string
key
=
@"/YB2024/Goods/"
+
DateTime
.
Now
.
Ticks
.
ToString
()+
fileExtention
;
//对象在存储桶中的位置,即称对象键
string
key
=
@"/SaleBefore/Goods/"
+
DateTime
.
Now
.
Ticks
.
ToString
()
+
fileExtention
;
//对象在存储桶中的位置,即称对象键
PutObjectRequest
request
=
new
PutObjectRequest
(
bucket
,
key
,
filePath
);
PutObjectRequest
request
=
new
PutObjectRequest
(
bucket
,
key
,
filePath
);
//设置签名有效时长
//设置签名有效时长
request
.
SetSign
(
TimeUtils
.
GetCurrentTime
(
TimeUnit
.
SECONDS
),
600
);
request
.
SetSign
(
TimeUtils
.
GetCurrentTime
(
TimeUnit
.
SECONDS
),
600
);
...
...
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