|
@@ -15,6 +15,7 @@ public class VlogApiService {
|
|
|
private HttpPoolClient httpPoolClient;
|
|
|
|
|
|
private final static String SHARE_IMG_URL = "https://vlogapi.piaoquantv.com/longvideoapi/video/share/web/qrImg";
|
|
|
+ private final static String SHARE_LINK_URL = "https://vlogapi.piaoquantv.com/longvideoapi/video/share/web/link";
|
|
|
|
|
|
public String getSharePic(String path, String appType) {
|
|
|
JSONObject requestParam = new JSONObject();
|
|
@@ -29,4 +30,18 @@ public class VlogApiService {
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
+
|
|
|
+ public String getShareUrlLink(String path, String appType) {
|
|
|
+ JSONObject requestParam = new JSONObject();
|
|
|
+ requestParam.put("page", path);
|
|
|
+ requestParam.put("appType", appType);
|
|
|
+ try {
|
|
|
+ String resultStr = httpPoolClient.post(SHARE_LINK_URL, requestParam.toJSONString());
|
|
|
+ JSONObject result = JSON.parseObject(resultStr);
|
|
|
+ return result.getString("data");
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("获取分享链接失败", e);
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|