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
dfb4c3c0
Commit
dfb4c3c0
authored
May 14, 2021
by
Li Feifei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print log
parent
febe2e46
Pipeline
#14625
passed with stages
in 1 minute 4 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
upload.go
upload/upload.go
+5
-0
No files found.
upload/upload.go
View file @
dfb4c3c0
...
@@ -17,6 +17,7 @@ import (
...
@@ -17,6 +17,7 @@ import (
"image/png"
"image/png"
"io"
"io"
"io/ioutil"
"io/ioutil"
"log"
"mime"
"mime"
"net/http"
"net/http"
"net/http/cookiejar"
"net/http/cookiejar"
...
@@ -246,6 +247,7 @@ func Down(v *models.XyuSmallTempFiles) {
...
@@ -246,6 +247,7 @@ func Down(v *models.XyuSmallTempFiles) {
ch
<-
true
ch
<-
true
}
else
{
}
else
{
UpdateFileError
(
"3"
,
v
.
Uuid
,
v
.
RoomNum
,
objectName
)
UpdateFileError
(
"3"
,
v
.
Uuid
,
v
.
RoomNum
,
objectName
)
return
}
}
}()
}()
<-
ch
<-
ch
...
@@ -260,12 +262,15 @@ func Down(v *models.XyuSmallTempFiles) {
...
@@ -260,12 +262,15 @@ func Down(v *models.XyuSmallTempFiles) {
for
_
,
file
:=
range
reader
.
File
{
for
_
,
file
:=
range
reader
.
File
{
Pool
.
DoWait
(
func
()
error
{
Pool
.
DoWait
(
func
()
error
{
log
.
Printf
(
"file = %s
\n
"
,
file
.
Name
)
var
err
error
var
err
error
for
i
:=
0
;
i
<
3
;
i
++
{
for
i
:=
0
;
i
<
3
;
i
++
{
if
err
=
pdfThumbnail
(
objectPath
,
file
,
bucket
);
err
==
nil
{
if
err
=
pdfThumbnail
(
objectPath
,
file
,
bucket
);
err
==
nil
{
break
break
}
}
}
}
return
err
return
err
})
})
//go func(file *zip.File) {
//go func(file *zip.File) {
...
...
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