更新短网址

This commit is contained in:
Coody
2020-01-16 17:34:01 +08:00
parent 265165733c
commit f9b03ce123
3 changed files with 110 additions and 106 deletions

View File

@@ -24,6 +24,10 @@
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View File

@@ -24,7 +24,7 @@ public class SortUrlService {
private String getSortUrlImplSina(String url) {
try {
HttpEntity entity = HttpUtil
.Get("http://ln.mk/short/create?unionId=3056c4478c744127bc8cd0fadf603d29&url=" + url.replace("http:", "").replace("https:", ""));
.Get("http://ln.mk/short/create?unionId=4149bfc7df0c496c84715714e02914f5&url=" + url.replace("http:", "").replace("https:", ""));
String html = entity.getHtml();
System.out.println(html);
MsgEntity result=JSON.parseObject(html, MsgEntity.class);