Browse Source

no message

master
ZHR007 2 months ago
parent
commit
292ffdd922
2 changed files with 4 additions and 2 deletions
  1. 3
      lib/controller/discover/room_controller.dart
  2. 3
      lib/controller/mine/rose_controller.dart

3
lib/controller/discover/room_controller.dart

@ -379,8 +379,7 @@ class RoomController extends GetxController with WidgetsBindingObserver {
if (currentRole == CurrentRole.broadcaster) {
try {
// RTC API
final destroyResponse = await _networkService.rtcApi
.destroyRtcChannel();
final destroyResponse = await _networkService.rtcApi.destroyRtcChannel();
if (destroyResponse.data.isSuccess) {
//
final channelId = RTCManager.instance.currentChannelId;

3
lib/controller/mine/rose_controller.dart

@ -91,6 +91,8 @@ class RoseController extends GetxController with WidgetsBindingObserver {
if(data?.status == 3){
SmartDialog.dismiss();
SmartDialog.showToast('支付成功');
await Future.delayed(Duration(milliseconds: 500));
SmartDialog.dismiss();
launchWX.value = false;
count.value = 0;
getRoseNum();
@ -102,6 +104,7 @@ class RoseController extends GetxController with WidgetsBindingObserver {
} else {
SmartDialog.dismiss();
SmartDialog.showToast('支付失败');
launchWX.value = false;
count.value = 0;
}

Loading…
Cancel
Save