|
|
|
@ -466,19 +466,22 @@ class RoomController extends GetxController with WidgetsBindingObserver { |
|
|
|
if (currentDetail == null) { |
|
|
|
return; |
|
|
|
} |
|
|
|
final userData = response.data.data; |
|
|
|
if (userData == null) { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (message['role'] == 'male_audience') { |
|
|
|
final userData = response.data.data; |
|
|
|
// if (userData != null) { |
|
|
|
final maleInfo = RtcSeatUserInfo( |
|
|
|
miId: rtcChannelDetail.value!.anchorInfo!.miId, |
|
|
|
userId: rtcChannelDetail.value!.anchorInfo!.userId, |
|
|
|
nickName: rtcChannelDetail.value!.anchorInfo!.nickName, |
|
|
|
profilePhoto: rtcChannelDetail.value!.anchorInfo!.profilePhoto, |
|
|
|
genderCode: rtcChannelDetail.value!.anchorInfo!.genderCode, |
|
|
|
seatNumber: rtcChannelDetail.value!.anchorInfo!.seatNumber, |
|
|
|
isFriend: rtcChannelDetail.value!.anchorInfo!.isFriend, |
|
|
|
isMicrophoneOn: rtcChannelDetail.value!.anchorInfo!.isMicrophoneOn, |
|
|
|
isVideoOn: rtcChannelDetail.value!.anchorInfo!.isVideoOn, |
|
|
|
miId: userData.miId, |
|
|
|
userId: userData.userId, |
|
|
|
nickName: userData.nickName, |
|
|
|
profilePhoto: userData.profilePhoto, |
|
|
|
genderCode: userData.genderCode, |
|
|
|
seatNumber: userData.seatNumber, |
|
|
|
isFriend: userData.isFriend, |
|
|
|
isMicrophoneOn: userData.isMicrophoneOn, |
|
|
|
isVideoOn: userData.isVideoOn, |
|
|
|
uid: message['uid'] is int |
|
|
|
? message['uid'] as int |
|
|
|
: int.tryParse(message['uid']?.toString() ?? ''), |
|
|
|
@ -490,20 +493,17 @@ class RoomController extends GetxController with WidgetsBindingObserver { |
|
|
|
femaleInfo: currentDetail.femaleInfo, |
|
|
|
); |
|
|
|
rtcChannelDetail.value = newDetail; |
|
|
|
// } |
|
|
|
} else if (message['role'] == 'female_audience') { |
|
|
|
final userData = response.data.data; |
|
|
|
// if (userData != null) { |
|
|
|
final femaleInfo = RtcSeatUserInfo( |
|
|
|
miId: rtcChannelDetail.value!.anchorInfo!.miId, |
|
|
|
userId: rtcChannelDetail.value!.anchorInfo!.userId, |
|
|
|
nickName: rtcChannelDetail.value!.anchorInfo!.nickName, |
|
|
|
profilePhoto: rtcChannelDetail.value!.anchorInfo!.profilePhoto, |
|
|
|
genderCode: rtcChannelDetail.value!.anchorInfo!.genderCode, |
|
|
|
seatNumber: rtcChannelDetail.value!.anchorInfo!.seatNumber, |
|
|
|
isFriend: rtcChannelDetail.value!.anchorInfo!.isFriend, |
|
|
|
isMicrophoneOn: rtcChannelDetail.value!.anchorInfo!.isMicrophoneOn, |
|
|
|
isVideoOn: rtcChannelDetail.value!.anchorInfo!.isVideoOn, |
|
|
|
miId: userData.miId, |
|
|
|
userId: userData.userId, |
|
|
|
nickName: userData.nickName, |
|
|
|
profilePhoto: userData.profilePhoto, |
|
|
|
genderCode: userData.genderCode, |
|
|
|
seatNumber: userData.seatNumber, |
|
|
|
isFriend: userData.isFriend, |
|
|
|
isMicrophoneOn: userData.isMicrophoneOn, |
|
|
|
isVideoOn: userData.isVideoOn, |
|
|
|
uid: message['uid'] is int |
|
|
|
? message['uid'] as int |
|
|
|
: int.tryParse(message['uid']?.toString() ?? ''), |
|
|
|
|