Commit 0a45c59c by Li Feifei

format project

parent 6a34055c
Pipeline #15687 passed with stages
in 31 seconds
......@@ -183,6 +183,9 @@ func (f *ObtainFile) splitDownloadLink() string {
// 进行解析上传操作
func (f *ObtainFile) Worker(err error) {
defer func() {
// 清理ZIP包
_ = os.Remove(f.parser.splitTempZipLink())
// 通知
if err != nil {
g.Log().Async().Error(err)
f.err <- err
......@@ -203,8 +206,6 @@ func (f *ObtainFile) Worker(err error) {
if err = http.Download(f.splitDownloadLink(), f.parser.splitTempZipLink()); err != nil {
return
}
// 清理ZIP包
defer os.Remove(f.parser.splitTempZipLink())
g.Log().Async().Infof("file: %s Zip Donwload Complete", f.parser.filename())
// 解析ZIP包并上传图片到OSS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment