From a1c96cfd0fa1d15f5592657b957bca3b8dd07e95 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Fri, 16 Jun 2023 15:30:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=9B=B4=E6=92=AD=E9=97=B4?= =?UTF-8?q?=E5=88=86=E4=BA=AB=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/share/bean/ShareBuilder.java | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) 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) {