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
b914175a
Commit
b914175a
authored
Jul 28, 2021
by
Li Feifei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
19d2614a
Pipeline
#15696
passed with stages
in 36 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
5 deletions
+1
-5
file.go
app/service/file.go
+1
-1
file_upload.go
packed/file/file_upload.go
+0
-4
No files found.
app/service/file.go
View file @
b914175a
...
...
@@ -36,7 +36,7 @@ func (f *fileService) Upload(file *file.ObtainFile) {
case
<-
f
.
Ok
:
// 上传成功
count
,
err
:=
dao
.
XyuRoomFile
.
Where
(
dao
.
XyuRoomFile
.
Columns
.
RoomId
,
room
.
Id
)
.
Where
(
dao
.
XyuRoomFile
.
Columns
.
Name
,
file
.
FileName
()
)
.
Count
()
Where
(
dao
.
XyuRoomFile
.
Columns
.
Name
,
file
.
R
.
Name
)
.
Count
()
if
err
!=
nil
{
g
.
Log
()
.
Async
()
.
Errorf
(
"Mysql Err: %s
\n
"
,
err
)
return
...
...
packed/file/file_upload.go
View file @
b914175a
...
...
@@ -220,10 +220,6 @@ func (f *ObtainFile) Worker(err error) {
g
.
Log
()
.
Async
()
.
Infof
(
"[4] file: %s upload success!"
,
f
.
parser
.
filename
())
}
func
(
f
*
ObtainFile
)
FileName
()
string
{
return
f
.
parser
.
filename
()
}
// 上传失败通知
func
(
f
*
ObtainFile
)
Fail
()
{
if
err
:=
f
.
n
.
notice
(
"/web/room_files_error"
,
g
.
Map
{
...
...
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