Commit e6f16d03 authored by 王明明's avatar 王明明

更换goquery

parent 42a586aa
......@@ -64,9 +64,7 @@ func (akm *AkmClient) Init() error {
}
scripts := htmlquery.Find(doc, "//script[@type=\"text/javascript\"]")
if len(scripts) == 0 {
respUri, _ := resp.Location()
akm.logger.WithError(err).Info("无法找到sensorurl url: " + respUri.RequestURI())
return errors.New("无法找到sensorurl url: " + respUri.RequestURI())
return errors.New("无法找到sensorurl url: ")
}
startIdx := len(scripts) - 1
lastScript := scripts[startIdx]
......
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