修复充值bug
This commit is contained in:
parent
4d26497eca
commit
a8f8ac802f
@ -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 () => {
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user