Commit 19d2614a by Li Feifei

debug

parent 38be9902
Pipeline #15695 passed with stages
in 35 seconds
......@@ -199,7 +199,7 @@ func (f *ObtainFile) Worker(err error) {
if err = f.fileInfo(); err != nil {
return
}
g.Log().Async().Infof("[1] file: %s file info complete", f.parser.name)
g.Log().Async().Infof("[1] file: %s file info complete", f.parser.filename())
// 下载ZIP包
if err = http.Download(f.splitDownloadLink(), f.parser.splitTempZipLink()); err != nil {
......@@ -211,13 +211,13 @@ func (f *ObtainFile) Worker(err error) {
if err = f.uploadPicture(); err != nil {
return
}
g.Log().Async().Infof("[3] picture upload oss success")
g.Log().Async().Infof("[3] file: %s picture upload oss success", f.parser.filename())
// 上传packed.json到oss
if err = f.uploadPacked(); err != nil {
return
}
g.Log().Async().Infof("[4] filename: %s upload success!", f.parser.name)
g.Log().Async().Infof("[4] file: %s upload success!", f.parser.filename())
}
func (f *ObtainFile) FileName() string {
......@@ -239,8 +239,6 @@ func (f *ObtainFile) Fail() {
// 上传成功通知
func (f *ObtainFile) Success(roomID int) {
fmt.Println("link == ", strings.Replace(f.parser.url, ossIntranetLink, uploadFileLinkHost, -1))
if err := f.n.notice("/web/room_files_add", g.Map{
"name": f.R.Name,
"file_name_hash": f.parser.nameHash(),
......
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