|
|
|
@ -139,8 +139,11 @@ class SpreadController extends GetxController with WidgetsBindingObserver { |
|
|
|
final response = await _userApi.getChatStaticsInfo(); |
|
|
|
if (response.data.isSuccess && response.data.data != null) { |
|
|
|
final data = response.data.data!; |
|
|
|
if(data.liveDurationMins >= 600 && !matchmakerFlag.value){ |
|
|
|
canApply = true; |
|
|
|
if(roseList[activePay.value].liveDurationHours != null){ |
|
|
|
int hours = int.parse(roseList[activePay.value].liveDurationHours!); |
|
|
|
if(hours > 0 && data.liveDurationMins >= 60 * hours && !matchmakerFlag.value){ |
|
|
|
canApply = true; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (e) { |
|
|
|
|