Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
ppt_server
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
Li Feifei
ppt_server
Commits
096b5911
Commit
096b5911
authored
Jan 27, 2021
by
Li Feifei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
7b1dc5c8
Pipeline
#13605
passed with stages
in 27 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ppt.go
upload/ppt.go
+2
-0
No files found.
upload/ppt.go
View file @
096b5911
...
@@ -68,6 +68,8 @@ func (p *PPT) Transform() (err error) {
...
@@ -68,6 +68,8 @@ func (p *PPT) Transform() (err error) {
_
=
mime
.
AddExtensionType
(
".pptx"
,
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
)
_
=
mime
.
AddExtensionType
(
".pptx"
,
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
)
maps
[
"type"
]
=
mime
.
TypeByExtension
(
ext
)
maps
[
"type"
]
=
mime
.
TypeByExtension
(
ext
)
maps
[
"path"
]
=
objectName
maps
[
"path"
]
=
objectName
link
:=
strings
.
Replace
(
p
.
request
.
Url
,
"xiaoyu-live.oss-cn-beijing-internal.aliyuncs.com"
,
"desktop.offcncloud.com"
,
-
1
)
maps
[
"link"
]
=
link
if
err
=
Send
(
maps
);
err
!=
nil
{
if
err
=
Send
(
maps
);
err
!=
nil
{
beeLogger
.
Log
.
Errorf
(
"Send Error: %s"
,
err
)
beeLogger
.
Log
.
Errorf
(
"Send Error: %s"
,
err
)
...
...
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