update
This commit is contained in:
@@ -62,7 +62,7 @@ public class UrlCheckUtil {
|
||||
}catch (SocketException e) {
|
||||
return "404";
|
||||
} catch (IOException e) {
|
||||
System.out.println("报错");
|
||||
System.out.println("报错");
|
||||
return "404";
|
||||
}
|
||||
return String.valueOf(statusCode);
|
||||
@@ -74,7 +74,7 @@ public class UrlCheckUtil {
|
||||
public static boolean CheckHttp(String address) throws URISyntaxException, MalformedURLException {
|
||||
URL url = new URL(address);
|
||||
URI uri = url.toURI();
|
||||
System.out.println(uri.getScheme());
|
||||
// System.out.println(uri.getScheme());
|
||||
if(uri.getScheme().equals("https")){
|
||||
return true;
|
||||
}else
|
||||
|
Reference in New Issue
Block a user