Browse Source

fix(discover): 添加积分不足检查

- 在进入房间前检查用户积分是否足够
- 积分不足时显示提示信息并阻止进入
- 避免无积分用户误操作进入房间
ios
Jolie 4 months ago
parent
commit
44532be91f
1 changed files with 4 additions and 0 deletions
  1. 4
      lib/controller/discover/room_controller.dart

4
lib/controller/discover/room_controller.dart

@ -201,6 +201,10 @@ class RoomController extends GetxController with WidgetsBindingObserver {
SmartDialog.showToast(response.data.message);
return;
}
if (!response.data.data['success']) {
SmartDialog.showToast('积分不足');
return;
}
currentRole = role;
if (role == CurrentRole.maleAudience ||
role == CurrentRole.femaleAudience) {

Loading…
Cancel
Save