调整直播间分享链接

This commit is contained in:
zlzw 2023-06-16 15:30:21 +08:00
parent 1198a8f1d8
commit a1c96cfd0f

View File

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