修复充值bug
This commit is contained in:
parent
4d26497eca
commit
a8f8ac802f
@ -119,6 +119,7 @@ const SystemSetting = () => {
|
|||||||
name === 'ServerAddress' ||
|
name === 'ServerAddress' ||
|
||||||
name === 'EpayId' ||
|
name === 'EpayId' ||
|
||||||
name === 'EpayKey' ||
|
name === 'EpayKey' ||
|
||||||
|
name === 'MinCharge' ||
|
||||||
name === 'Price' ||
|
name === 'Price' ||
|
||||||
name === 'PayAddress' ||
|
name === 'PayAddress' ||
|
||||||
name === 'GitHubClientId' ||
|
name === 'GitHubClientId' ||
|
||||||
@ -159,6 +160,7 @@ const SystemSetting = () => {
|
|||||||
await updateOption('EpayId', inputs.EpayId);
|
await updateOption('EpayId', inputs.EpayId);
|
||||||
await updateOption('EpayKey', inputs.EpayKey);
|
await updateOption('EpayKey', inputs.EpayKey);
|
||||||
await updateOption('Price', "" + inputs.Price);
|
await updateOption('Price', "" + inputs.Price);
|
||||||
|
await updateOption('MinCharge', "" + inputs.MinCharge);
|
||||||
};
|
};
|
||||||
|
|
||||||
const submitSMTP = async () => {
|
const submitSMTP = async () => {
|
||||||
|
@ -53,6 +53,9 @@ const TopUp = () => {
|
|||||||
if (amount === 0) {
|
if (amount === 0) {
|
||||||
await getAmount();
|
await getAmount();
|
||||||
}
|
}
|
||||||
|
if (amount === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
setPayWay(payment)
|
setPayWay(payment)
|
||||||
setOpen(true);
|
setOpen(true);
|
||||||
}
|
}
|
||||||
@ -143,7 +146,8 @@ const TopUp = () => {
|
|||||||
if (message === 'success') {
|
if (message === 'success') {
|
||||||
setAmount(parseInt(data));
|
setAmount(parseInt(data));
|
||||||
} else {
|
} else {
|
||||||
showError(data);
|
showError(message);
|
||||||
|
setAmount(0)
|
||||||
// setTopUpCount(parseInt(res.data.count));
|
// setTopUpCount(parseInt(res.data.count));
|
||||||
// setAmount(parseInt(data));
|
// setAmount(parseInt(data));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user