调整直播间分享链接
This commit is contained in:
parent
1198a8f1d8
commit
a1c96cfd0f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user