diff --git a/Share/src/main/java/com/yunbao/share/bean/ShareBuilder.java b/Share/src/main/java/com/yunbao/share/bean/ShareBuilder.java index e5f60206d..2eceb9b43 100644 --- a/Share/src/main/java/com/yunbao/share/bean/ShareBuilder.java +++ b/Share/src/main/java/com/yunbao/share/bean/ShareBuilder.java @@ -30,18 +30,12 @@ public class ShareBuilder { private String anchorAvatar; public static String createLiveShareLink(String shareUid, String anchorId, String anchorName, String anchorAvatar) { - try { - return String.format(CommonAppConfig.HOST + - "/h5/activity/FriendInvitation/liveShare.html?user_id=%s&anchor_id=%s&anchor_name=%s&anchor_avatar=%s&isGoogle=%s", - shareUid, - anchorId, - URLEncoder.encode(anchorName, "UTF-8"), - URLEncoder.encode(anchorAvatar, "UTF-8"), - CommonAppConfig.IS_GOOGLE_PLAY ? "1" : "0" - ) ; - } catch (UnsupportedEncodingException e) { - throw new RuntimeException(e); - } + return String.format(CommonAppConfig.HOST + + "/index.php?g=Appapi&m=home&a=share&uid=%s&user_id=%s&isGoogle=%s", + anchorId, + shareUid, + CommonAppConfig.IS_GOOGLE_PLAY ? "1" : "0" + ) ; } public static String createInviteLink(String shareUid) {