mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 05:30:07 +08:00
shindan api失效时提示出错
This commit is contained in:
parent
98b4a6af28
commit
eb901a2f73
@ -119,6 +119,9 @@ func shindanmaker(id, name string) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
if resp.ContentLength <= 0 {
|
||||
return "出错啦", nil
|
||||
}
|
||||
// 解析XPATH
|
||||
doc, err := xpath.Parse(resp.Body)
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user