2 Commits
Author SHA1 Message Date
hello-hao 57b6c4ae72 Merge remote-tracking branch 'origin/hellohao-dev'
# Conflicts:
#	src/main/java/cn/hellohao/service/impl/InitializationStorage.java
2023-03-21 21:25:04 +08:00
hello-hao 538482a73b :rocket:删除部分无用代码 2023-03-10 19:45:48 +08:00
@@ -104,7 +104,7 @@ public class ImgUrlUtil {
HttpURLConnection conn = (HttpURLConnection)url.openConnection(); HttpURLConnection conn = (HttpURLConnection)url.openConnection();
//设置超时间为3秒 //设置超时间为3秒
conn.setConnectTimeout(5*1000); conn.setConnectTimeout(5*1000);
//防止屏蔽程序抓取而返回403错误 //防止屏蔽程序抓取而返回403错误 Referer
conn.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)"); conn.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)");
//得到输入流 //得到输入流