|
|
|
@ -76,8 +76,12 @@ class _LiveRoomNoticeChatPanelState extends State<LiveRoomNoticeChatPanel> { |
|
|
|
), |
|
|
|
SizedBox(width: 18.w), |
|
|
|
Obx((){ |
|
|
|
if(controller.rtcChannelDetail.value?.maleInfo == null && GlobalData().userData?.genderCode == 1 && controller.currentRole != CurrentRole.broadcaster || |
|
|
|
controller.rtcChannelDetail.value?.femaleInfo == null && GlobalData().userData?.genderCode == 2 && controller.currentRole != CurrentRole.broadcaster){ |
|
|
|
Get.log("${controller.rtcChannelDetail.value?.maleInfo}"); |
|
|
|
Get.log("${controller.rtcChannelDetail.value?.femaleInfo}"); |
|
|
|
Get.log("${controller.currentRole}"); |
|
|
|
Get.log("${GlobalData().userData?.genderCode}"); |
|
|
|
if(controller.rtcChannelDetail.value?.maleInfo == null && GlobalData().userData?.genderCode == 0 && controller.currentRole != CurrentRole.broadcaster || |
|
|
|
controller.rtcChannelDetail.value?.femaleInfo == null && GlobalData().userData?.genderCode == 1 && controller.currentRole != CurrentRole.broadcaster){ |
|
|
|
return Container( |
|
|
|
width: 120.w, |
|
|
|
height: 55.w, |
|
|
|
@ -125,7 +129,7 @@ class _LiveRoomNoticeChatPanelState extends State<LiveRoomNoticeChatPanel> { |
|
|
|
if(controller.isLive){ |
|
|
|
await controller.leaveChat(); |
|
|
|
}else{ |
|
|
|
await controller.joinChat(GlobalData().userData?.genderCode == 1 ? CurrentRole.maleAudience : CurrentRole.femaleAudience); |
|
|
|
await controller.joinChat(GlobalData().userData?.genderCode == 0 ? CurrentRole.maleAudience : CurrentRole.femaleAudience); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|