更新短网址
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user