|
@@ -118,16 +118,14 @@ const WalletCard = (props: { userMoney: Wallet }) => {
|
|
getUserTransferApi({ wallet_type })
|
|
getUserTransferApi({ wallet_type })
|
|
.then((res) => {
|
|
.then((res) => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
- Toast.show("领取成功!")
|
|
|
|
|
|
+ Toast.show(t("code.200"));
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
tipsRef.current?.onClose();
|
|
tipsRef.current?.onClose();
|
|
}, 1000)
|
|
}, 1000)
|
|
- return;
|
|
|
|
}
|
|
}
|
|
- Toast.show("领取失败!");
|
|
|
|
})
|
|
})
|
|
.catch((error) => {
|
|
.catch((error) => {
|
|
- Toast.show("领取失败!");
|
|
|
|
|
|
+ Toast.show(t(`code.${error.data.code}`));
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
|