Commit 11ef2c32 by wzxjohn

fix: for AI review problems

parent df69147d
...@@ -243,7 +243,7 @@ const TopUp = () => { ...@@ -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 = () => { ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment