|
@@ -20,6 +20,7 @@ const OperationSetting = () => {
|
|
|
DisplayInCurrencyEnabled: '',
|
|
DisplayInCurrencyEnabled: '',
|
|
|
DisplayTokenStatEnabled: '',
|
|
DisplayTokenStatEnabled: '',
|
|
|
ApproximateTokenEnabled: '',
|
|
ApproximateTokenEnabled: '',
|
|
|
|
|
+ RetryTimes: 0,
|
|
|
});
|
|
});
|
|
|
const [originInputs, setOriginInputs] = useState({});
|
|
const [originInputs, setOriginInputs] = useState({});
|
|
|
let [loading, setLoading] = useState(false);
|
|
let [loading, setLoading] = useState(false);
|
|
@@ -122,6 +123,9 @@ const OperationSetting = () => {
|
|
|
if (originInputs['QuotaPerUnit'] !== inputs.QuotaPerUnit) {
|
|
if (originInputs['QuotaPerUnit'] !== inputs.QuotaPerUnit) {
|
|
|
await updateOption('QuotaPerUnit', inputs.QuotaPerUnit);
|
|
await updateOption('QuotaPerUnit', inputs.QuotaPerUnit);
|
|
|
}
|
|
}
|
|
|
|
|
+ if (originInputs['RetryTimes'] !== inputs.RetryTimes) {
|
|
|
|
|
+ await updateOption('RetryTimes', inputs.RetryTimes);
|
|
|
|
|
+ }
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
@@ -133,7 +137,7 @@ const OperationSetting = () => {
|
|
|
<Header as='h3'>
|
|
<Header as='h3'>
|
|
|
通用设置
|
|
通用设置
|
|
|
</Header>
|
|
</Header>
|
|
|
- <Form.Group widths={3}>
|
|
|
|
|
|
|
+ <Form.Group widths={4}>
|
|
|
<Form.Input
|
|
<Form.Input
|
|
|
label='充值链接'
|
|
label='充值链接'
|
|
|
name='TopUpLink'
|
|
name='TopUpLink'
|
|
@@ -162,6 +166,17 @@ const OperationSetting = () => {
|
|
|
step='0.01'
|
|
step='0.01'
|
|
|
placeholder='一单位货币能兑换的额度'
|
|
placeholder='一单位货币能兑换的额度'
|
|
|
/>
|
|
/>
|
|
|
|
|
+ <Form.Input
|
|
|
|
|
+ label='失败重试次数'
|
|
|
|
|
+ name='RetryTimes'
|
|
|
|
|
+ type={'number'}
|
|
|
|
|
+ step='1'
|
|
|
|
|
+ min='0'
|
|
|
|
|
+ onChange={handleInputChange}
|
|
|
|
|
+ autoComplete='new-password'
|
|
|
|
|
+ value={inputs.RetryTimes}
|
|
|
|
|
+ placeholder='失败重试次数'
|
|
|
|
|
+ />
|
|
|
</Form.Group>
|
|
</Form.Group>
|
|
|
<Form.Group inline>
|
|
<Form.Group inline>
|
|
|
<Form.Checkbox
|
|
<Form.Checkbox
|