Commit b1d8b614 by ludi

Merge branch 'feature/私享房需求' of http://git.yabolive.net:88/pidan/FuSiLive into feature/私享房需求

parents d1f9847b 400bae57
......@@ -107,7 +107,7 @@
@property (nonatomic, strong) FUSLiveThemeModel *theme;
/// 私享房信息
@property (nonatomic, strong) FUSRoomEncryptionData *encryptionData;
@property (nonatomic, strong) FUSRoomEncryptionData *__nullable encryptionData;
@property (nonatomic, copy) NSArray<NSString *> *reminderKeys;
......
......@@ -2524,14 +2524,14 @@
liveTitle = [NSString fus_localString:@"我的直播開始啦"];
liveContent = [NSString fus_localString:@"房間已開好,快來一起玩耍吧"];
} else {
liveTitle = [NSString fus_versionLocalString:@"我在私屋直播"];
liveTitle = [NSString fus_versionLocalString:@"我在私屋直播"];
liveContent = [NSString fus_versionLocalString:@"需要输入密码进入直播屋"];
}
[self fus_sendLiveRoomShareWithRoomId:roomModel.roomId
pullFlowUrl:roomModel.publishUrl
liveTitle:liveTitle
roomName:roomModel.nickName
content:[NSString fus_localString:@"房間已開好,快來一起玩耍吧"]
content:liveContent
roomCover:roomModel.face
password:password
toUser:userID
......
......@@ -228,7 +228,7 @@ var isShowShareToolSheetView = true
if FUSLiveHelper.shareInstance().roomScopeType == .password {
self.passwordLabel.isHidden = false
self.passwordDescLabel.isHidden = false
self.passwordLabel.text = FUSLiveHelper.shareInstance().roomInfoModel?.encryptionData.password
self.passwordLabel.text = FUSLiveHelper.shareInstance().roomInfoModel?.encryptionData?.password ?? ""
} else {
self.passwordLabel.isHidden = true
self.passwordDescLabel.isHidden = true
......
......@@ -112,7 +112,7 @@ import RxSwift
let tipLabel = UILabel()
tipLabel.font = .fus_themeFont(13)
tipLabel.textColor = .fus_textColorLight2()
tipLabel.text = FUSLiveHelper.shareInstance().roomInfoModel?.encryptionData.passwordShow
tipLabel.text = FUSLiveHelper.shareInstance().roomInfoModel?.encryptionData?.passwordShow ?? ""
contentView.addSubview(tipLabel)
tipLabel.snp.makeConstraints { make in
make.top.equalTo(self.passwordView.snp.bottom).offset(33)
......
......@@ -103,7 +103,7 @@ import FUSCommon
//这里特殊用户有不一样的逻辑
let iconImagesList = ["live_start_openScope_cell","live_start_passwordScope_cell"/*,"live_start_intimacyScope_cell"*/]
let titlesList = [String.fus_versionLocalString("公开屋"), .fus_versionLocalString("私享屋")/*, .fus_localString("亲密圈")*/]
let subTitlesList = [String.fus_localString("所有人可进入房间"), .fus_versionLocalString("已关闭窗帘,玩家输入密码打开")/*, .fus_localString("仅亲密好友可进入房间")*/]
let subTitlesList = [String.fus_localString("所有人可进入房间"), .fus_versionLocalString("玩家正确输入密码后可进入屋内")/*, .fus_localString("仅亲密好友可进入房间")*/]
let itemHeight = 56.0
privacyContentView.snp.makeConstraints { make in
......@@ -116,7 +116,7 @@ import FUSCommon
for (index, iconStr) in iconImagesList.enumerated() {
var canSelect = true
if index == 0 {
if FUSLiveHelper.shareInstance().roomInfoModel?.encryptionData.liveScopeOpen.intValue == -1 {
if FUSLiveHelper.shareInstance().roomInfoModel?.encryptionData?.liveScopeOpen.intValue == -1 {
canSelect = false
}
}
......@@ -183,7 +183,7 @@ import FUSCommon
switch index{
case 0:
if FUSLiveHelper.shareInstance().roomInfoModel?.encryptionData.liveScopeOpen.intValue == -1 {
if FUSLiveHelper.shareInstance().roomInfoModel?.encryptionData?.liveScopeOpen.intValue == -1 {
self.scopeType = .password
} else {
self.scopeType = .open
......@@ -350,7 +350,7 @@ class FUSLiveStartSetPrivacyItemView: UIView {
cantSelectTipLabel.numberOfLines = 0
bgTapBtn.addSubview(cantSelectTipLabel)
cantSelectTipLabel.isHidden = true
cantSelectTipLabel.text = FUSLiveHelper.shareInstance().roomInfoModel?.encryptionData.liveScopeOpenShow
cantSelectTipLabel.text = FUSLiveHelper.shareInstance().roomInfoModel?.encryptionData?.liveScopeOpenShow ?? ""
cantSelectTipLabel.snp.makeConstraints { make in
make.right.equalToSuperview().inset(12)
make.centerY.equalToSuperview()
......
......@@ -204,7 +204,7 @@ import FUSCommon
if succeed {
model.scopeType = scopeType
model.password = password
FUSLiveHelper.shareInstance().roomInfoModel?.encryptionData.password = password
FUSLiveHelper.shareInstance().roomInfoModel?.encryptionData?.password = password
self?.startLiveModel.accept(model)
}
})
......@@ -229,7 +229,7 @@ import FUSCommon
FUSLiveStartSetPasswordView.fus_create(clickHandler: { [weak self] succeed, password in
if succeed {
model.password = password
FUSLiveHelper.shareInstance().roomInfoModel?.encryptionData.password = password
FUSLiveHelper.shareInstance().roomInfoModel?.encryptionData?.password = password
self?.startLiveModel.accept(model)
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment