fix bug
This commit is contained in:
parent
6c762414e9
commit
dcdf3ccc9f
@ -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,
|
||||
|
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user