()
| 55 | return s.result |
| 56 | } |
| 57 | func (s *SecurityTrails) CheckLogin() bool { |
| 58 | s.http.New("GET", "https://151.139.240.16/app/account") |
| 59 | s.http.IgnoreSSL() |
| 60 | s.http.HttpRequest.Host = "securitytrails.com" |
| 61 | s.http.Execute() |
| 62 | defer s.http.Close() |
| 63 | ret, _ := s.http.Text() |
| 64 | return strings.Contains(ret, s.UserName) |
| 65 | } |
| 66 | func (s *SecurityTrails) Login(ReLogin bool) bool { |
| 67 | s.MaxPage = 100 |
| 68 | s.http = Ghttp.Http{} |