|
@@ -86,8 +86,6 @@ const Withdraw = () => {
|
|
|
canWithdraw = false;
|
|
|
}
|
|
|
|
|
|
- console.log(target_point_rollover);
|
|
|
-
|
|
|
return {
|
|
|
canWithdraw,
|
|
|
percent: percentage(current, total),
|
|
@@ -221,23 +219,25 @@ const Withdraw = () => {
|
|
|
};
|
|
|
|
|
|
const onFinish = async (value: any) => {
|
|
|
- const { data } = await userInfoApi();
|
|
|
if (
|
|
|
- faltaData.score <= currentChannel.min_amount ||
|
|
|
+ faltaData.score < currentChannel.min_amount ||
|
|
|
new BigNumber(value.amount).isGreaterThan(faltaData.score) ||
|
|
|
new BigNumber(value.amount).isLessThan(currentChannel.min_amount) ||
|
|
|
- faltaData.waitPoint !== 0 ||
|
|
|
- faltaData.waitScore !== 0
|
|
|
+ !faltaData.canWithdraw
|
|
|
) {
|
|
|
Toast.show("Quantidade insuficiente disponível para retirada");
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
+ if (!faltaData.canWithdraw) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (wallet.point > 0) {
|
|
|
pointModelRef.current?.onOpen();
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ const { data } = await userInfoApi();
|
|
|
+
|
|
|
// 如果有未完成游戏
|
|
|
if (data.play_list && data.play_list.length > 0) {
|
|
|
game.current = data.play_list[0];
|