修复充值bug

This commit is contained in:
CaIon 2023-11-06 03:03:14 +08:00
parent 4d26497eca
commit a8f8ac802f
2 changed files with 7 additions and 1 deletions

View File

@ -119,6 +119,7 @@ const SystemSetting = () => {
name === 'ServerAddress' ||
name === 'EpayId' ||
name === 'EpayKey' ||
name === 'MinCharge' ||
name === 'Price' ||
name === 'PayAddress' ||
name === 'GitHubClientId' ||
@ -159,6 +160,7 @@ const SystemSetting = () => {
await updateOption('EpayId', inputs.EpayId);
await updateOption('EpayKey', inputs.EpayKey);
await updateOption('Price', "" + inputs.Price);
await updateOption('MinCharge', "" + inputs.MinCharge);
};
const submitSMTP = async () => {

View File

@ -53,6 +53,9 @@ const TopUp = () => {
if (amount === 0) {
await getAmount();
}
if (amount === 0) {
return;
}
setPayWay(payment)
setOpen(true);
}
@ -143,7 +146,8 @@ const TopUp = () => {
if (message === 'success') {
setAmount(parseInt(data));
} else {
showError(data);
showError(message);
setAmount(0)
// setTopUpCount(parseInt(res.data.count));
// setAmount(parseInt(data));
}