Commit 09c931ee by Li Feifei

debug

parent 63d83b0f
Pipeline #15623 failed with stages
in 14 seconds
...@@ -37,7 +37,6 @@ func (n *Notify) verify(url string, data g.Map) error { ...@@ -37,7 +37,6 @@ func (n *Notify) verify(url string, data g.Map) error {
return err return err
} }
fmt.Println(string(res))
var notifyResponse model.NotifyResponse var notifyResponse model.NotifyResponse
if err = json.Unmarshal(res, &notifyResponse); err != nil { if err = json.Unmarshal(res, &notifyResponse); err != nil {
return err return err
......
...@@ -78,16 +78,16 @@ func (f *parser) dataPath() string { ...@@ -78,16 +78,16 @@ func (f *parser) dataPath() string {
// 解析doctype // 解析doctype
func (f *parser) docType() string { func (f *parser) docType() string {
switch f.ext { switch f.ext {
case ".ppt", "pptx": case ".ppt", ".pptx":
return "4" return "4"
case ".doc", "docx": case ".doc", ".docx":
return "2" return "2"
case "xls", "xlsx": case ".xls", ".xlsx":
return "3" return "3"
case ".pdf": case ".pdf":
return "1" return "1"
default: default:
return "0" return "1"
} }
} }
......
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