Skip to content

Commit

Permalink
系统优化
Browse files Browse the repository at this point in the history
Signed-off-by: xxx <x@x.x>
  • Loading branch information
xxx committed Jan 5, 2018
1 parent af630ce commit 171c5a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,4 @@ public class ShadowSocksEntity implements Serializable {
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY) // 级联保存、更新、删除、刷新;延迟加载
@JoinColumn(name = "ss_id") // 在 Details 表增加一个外键列来实现一对多的单向关联
private Set<ShadowSocksDetailsEntity> shadowSocksSet; // 一对多,网站 ShadowSocks 信息

/*public String getLink(boolean valid) {
if (!shadowSocksSet.isEmpty()) {
StringBuilder link = new StringBuilder();
for (ShadowSocksDetailsEntity entity : shadowSocksSet) {
if (valid) {
if (entity.isValid()) {
link.append(entity.getLinkNotSafe());
}
} else {
link.append(entity.getLinkNotSafe());
}
log.debug("link ------>{}\n{}", entity, entity.getLinkNotSafe());
}
log.debug("links ------>{}\n{}", link, Base64.encodeBase64String(link.toString().getBytes(StandardCharsets.UTF_8)));
return Base64.encodeBase64String(link.toString().getBytes(StandardCharsets.UTF_8));
}
return "";
}*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private Document getDocument() throws IOException {
.ignoreContentType(true)
.followRedirects(true)
.timeout(TIME_OUT)
.proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", 1080)))
// .proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", 1080)))
.get();
} catch (IOException e) {
throw new IOException("请求[" + getTargetURL() + "]异常:" + e.getMessage(), e);
Expand Down

0 comments on commit 171c5a4

Please sign in to comment.