Commit be15eb74 by Li Feifei

Update file_upload.go

parent 1587ed94
Pipeline #15610 passed with stages
in 39 seconds
...@@ -76,12 +76,12 @@ func Upload(r *model.FileUploadRequest, errChan chan error, ...@@ -76,12 +76,12 @@ func Upload(r *model.FileUploadRequest, errChan chan error,
//从web365获取上传文件信息 //从web365获取上传文件信息
func (f *ObtainFile) fileInfo() error { func (f *ObtainFile) fileInfo() error {
fmt.Println(f.parser.splitFileInfoLink())
fileBytes, err := http.Get(f.parser.splitFileInfoLink()) fileBytes, err := http.Get(f.parser.splitFileInfoLink())
if err != nil { if err != nil {
return err return err
} }
fmt.Println("body === ", string(fileBytes))
var fileInfo model.UploadFileInfo var fileInfo model.UploadFileInfo
if err = json.Unmarshal(fileBytes, &fileInfo); err != nil { if err = json.Unmarshal(fileBytes, &fileInfo); err != nil {
return err return err
......
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