Commit 72351ebf by Li Feifei

debug

parent 64a24c08
Pipeline #15619 passed with stages
in 38 seconds
......@@ -3,7 +3,6 @@ package file
import (
"encoding/json"
"os"
"fmt"
"ppt_server/app/model"
"ppt_server/library/http"
......@@ -95,7 +94,6 @@ func (n *Notify) Fail(object *ObtainFile) {
// 上传成功通知
func (n *Notify) Success(res g.Map) {
fmt.Println("map == ", res)
if err := n.notify("/web/room_files_add", res); err != nil {
g.Log().Async().Error(err)
}
......
......@@ -93,6 +93,6 @@ func (f *parser) docType() string {
// 获取文件mine
func (f *parser) mineType() string {
fmt.Println("ext == ", f.ext)
_ = mime.AddExtensionType(".pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation")
return mime.TypeByExtension(f.ext)
}
......@@ -221,7 +221,6 @@ func (f *ObtainFile) Worker(err error) {
return
}
g.Log().Async().Infof("filename: %s upload success!", f.parser.name)
fmt.Println("type === ", f.parser.mineType())
m := g.Map{
"name": f.parser.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