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
72351ebf
Commit
72351ebf
authored
Jul 26, 2021
by
Li Feifei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
64a24c08
Pipeline
#15619
passed with stages
in 38 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
4 deletions
+1
-4
file_notify.go
packed/file/file_notify.go
+0
-2
file_parser.go
packed/file/file_parser.go
+1
-1
file_upload.go
packed/file/file_upload.go
+0
-1
No files found.
packed/file/file_notify.go
View file @
72351ebf
...
...
@@ -3,7 +3,6 @@ package file
import
(
"encoding/json"
"os"
"fmt"
"ppt_server/app/model"
"ppt_server/library/http"
...
...
@@ -95,7 +94,6 @@ func (n *Notify) Fail(object *ObtainFile) {
// 上传成功通知
func
(
n
*
Notify
)
Success
(
res
g
.
Map
)
{
fmt
.
Println
(
"map == "
,
res
)
if
err
:=
n
.
notify
(
"/web/room_files_add"
,
res
);
err
!=
nil
{
g
.
Log
()
.
Async
()
.
Error
(
err
)
}
...
...
packed/file/file_parser.go
View file @
72351ebf
...
...
@@ -93,6 +93,6 @@ func (f *parser) docType() string {
// 获取文件mine
func
(
f
*
parser
)
mineType
()
string
{
fmt
.
Println
(
"ext == "
,
f
.
ext
)
_
=
mime
.
AddExtensionType
(
".pptx"
,
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
)
return
mime
.
TypeByExtension
(
f
.
ext
)
}
packed/file/file_upload.go
View file @
72351ebf
...
...
@@ -221,7 +221,6 @@ func (f *ObtainFile) Worker(err error) {
return
}
g
.
Log
()
.
Async
()
.
Infof
(
"filename: %s upload success!"
,
f
.
parser
.
name
)
fmt
.
Println
(
"type === "
,
f
.
parser
.
mineType
())
m
:=
g
.
Map
{
"name"
:
f
.
parser
.
name
,
"file_name_hash"
:
f
.
parser
.
nameHash
(),
...
...
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