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 {
return err
}
fmt.Println(string(res))
var notifyResponse model.NotifyResponse
if err = json.Unmarshal(res, &notifyResponse); err != nil {
return err
......
......@@ -78,16 +78,16 @@ func (f *parser) dataPath() string {
// 解析doctype
func (f *parser) docType() string {
switch f.ext {
case ".ppt", "pptx":
case ".ppt", ".pptx":
return "4"
case ".doc", "docx":
case ".doc", ".docx":
return "2"
case "xls", "xlsx":
case ".xls", ".xlsx":
return "3"
case ".pdf":
return "1"
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