Browse Source

修改直播间分享的地址

Pq 2 years ago
parent
commit
a8a1c0a3c2

+ 1 - 1
BaseLibrary/src/main/java/com/cooleshow/base/common/WebConstants.java

@@ -146,7 +146,7 @@ public abstract class WebConstants {
     //我的乐谱
     public static final String MINE_MUSIC_SHEET = getBaseUrlH5() + "/#/mySheetMusic";
     //分享直播间落地页地址
-    public static final String SHARE_LIVE_URL = getBaseUrlH5() + "/#/transfer?action=app&pageTag=liveRoom&liveRoomId=%s";
+    public static final String SHARE_LIVE_URL = getBaseUrlH5() + "/#/shareLiveRoom?liveRoomId=%s&userId=%s";
 
 
 }

+ 2 - 1
student/src/main/java/com/cooleshow/student/widgets/dialog/LiveRoomShareDialog.java

@@ -131,7 +131,8 @@ public class LiveRoomShareDialog extends Dialog {
         if (!isNeedCreateQRCode) {
             return;
         }
-        String url = String.format(WebConstants.SHARE_LIVE_URL, roomId);
+        String userId = UserHelper.getUserId();
+        String url = String.format(WebConstants.SHARE_LIVE_URL, roomId,userId);
         Observable.create(new ObservableOnSubscribe<Bitmap>() {
             @Override
             public void subscribe(@io.reactivex.rxjava3.annotations.NonNull ObservableEmitter<Bitmap> emitter) throws Throwable {