fix: for AI review problems
This commit is contained in:
@@ -243,7 +243,7 @@ const TopUp = () => {
|
|||||||
showError(t('管理员未开启在线充值!'));
|
showError(t('管理员未开启在线充值!'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setPayWay('stripe')
|
setPayWay('stripe');
|
||||||
setPaymentLoading(true);
|
setPaymentLoading(true);
|
||||||
try {
|
try {
|
||||||
await getStripeAmount();
|
await getStripeAmount();
|
||||||
@@ -276,7 +276,7 @@ const TopUp = () => {
|
|||||||
if (res !== undefined) {
|
if (res !== undefined) {
|
||||||
const { message, data } = res.data;
|
const { message, data } = res.data;
|
||||||
if (message === 'success') {
|
if (message === 'success') {
|
||||||
processStripeCallback(data)
|
processStripeCallback(data);
|
||||||
} else {
|
} else {
|
||||||
showError(data);
|
showError(data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user