Finish the feature of share and bridge.
This commit is contained in:
@ -797,6 +797,10 @@ func (this *MatterService) AtomicCrawl(url string, filename string, user *User,
|
||||
panic("资源url必填,并且应该以http://或者https://开头")
|
||||
}
|
||||
|
||||
if filename == "" {
|
||||
panic(result.BadRequest("filename cannot be null."))
|
||||
}
|
||||
|
||||
//从指定的url下载一个文件。参考:https://golangcode.com/download-a-file-from-a-url/
|
||||
resp, err := http.Get(url)
|
||||
this.PanicError(err)
|
||||
|
Reference in New Issue
Block a user