This commit is contained in:
CaIon 2023-11-06 22:09:48 +08:00
parent 6c762414e9
commit dcdf3ccc9f
2 changed files with 6 additions and 5 deletions

View File

@ -27,9 +27,6 @@ func GetStatus(c *gin.Context) {
"wechat_qrcode": common.WeChatAccountQRCodeImageURL,
"wechat_login": common.WeChatAuthEnabled,
"server_address": common.ServerAddress,
"pay_address": common.PayAddress,
"epay_id": common.EpayId,
"epay_key": common.EpayKey,
"price": common.Price,
"min_charge": common.MinCharge,
"turnstile_check": common.TurnstileCheckEnabled,

View File

@ -157,8 +157,12 @@ const SystemSetting = () => {
}
let PayAddress = removeTrailingSlash(inputs.PayAddress);
await updateOption('PayAddress', PayAddress);
await updateOption('EpayId', inputs.EpayId);
await updateOption('EpayKey', inputs.EpayKey);
if (inputs.EpayId !== '') {
await updateOption('EpayId', inputs.EpayId);
}
if (inputs.EpayKey !== '') {
await updateOption('EpayKey', inputs.EpayKey);
}
await updateOption('Price', "" + inputs.Price);
await updateOption('MinCharge', "" + inputs.MinCharge);
};