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
3535965d
Commit
3535965d
authored
Dec 02, 2021
by
Li Feifei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
2776437c
Pipeline
#17125
failed with stages
in 4 seconds
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
go.mod
go.mod
+2
-1
go.sum
go.sum
+0
-0
file_upload.go
packed/file/file_upload.go
+2
-1
No files found.
go.mod
View file @
3535965d
...
...
@@ -3,7 +3,7 @@ module ppt_server
go 1.16
require (
github.com/aliyun/aliyun-oss-go-sdk v2.
1.9
+incompatible
github.com/aliyun/aliyun-oss-go-sdk v2.
2.0
+incompatible
github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f // indirect
github.com/chai2010/webp v1.1.0
github.com/gogf/gf v1.16.6
...
...
@@ -12,6 +12,7 @@ require (
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/satori/go.uuid v1.2.0 // indirect
github.com/xxjwxc/gowp v0.0.0-20210520113007-57eb4693b12d
gitlab.eoffcn.com/cloud/goforest v0.3.6 // indirect
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d // indirect
golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069 // indirect
golang.org/x/time v0.0.0-20210611083556-38a9dc6acbc6 // indirect
...
...
go.sum
View file @
3535965d
This diff is collapsed.
Click to expand it.
packed/file/file_upload.go
View file @
3535965d
...
...
@@ -24,6 +24,7 @@ import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/gtime"
"github.com/xxjwxc/gowp/workpool"
"gitlab.eoffcn.com/cloud/goforest/helper/vhttp"
)
// 解析URL返回基本信息
...
...
@@ -210,7 +211,7 @@ func (f *ObtainFile) Worker(err error) {
g
.
Log
()
.
Async
()
.
Infof
(
"[1/4] file: %s file info complete"
,
f
.
parser
.
filename
())
// 下载ZIP包
if
err
=
http
.
Download
(
f
.
splitDownloadLink
(),
f
.
parser
.
splitTempZipLink
());
err
!=
nil
{
if
err
=
v
http
.
Download
(
f
.
splitDownloadLink
(),
f
.
parser
.
splitTempZipLink
());
err
!=
nil
{
return
}
g
.
Log
()
.
Async
()
.
Infof
(
"[2/4] file: %s zip donwload complete"
,
f
.
parser
.
filename
())
...
...
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