fix(super_manage): type of submission_frequency_limit

This commit is contained in:
Baoshuo Ren 2023-02-14 14:19:16 +08:00
parent c35dd3f3fb
commit 1c2ac53a62
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -1088,8 +1088,13 @@ if ($cur_tab == 'index') {
'default_value' => $submission_frequency['interval'], 'default_value' => $submission_frequency['interval'],
]); ]);
$submission_frequency_form->addInput('submission_frequency_limit', [ $submission_frequency_form->addInput('submission_frequency_limit', [
'type' => 'number',
'label' => '最大提交次数', 'label' => '最大提交次数',
'help' => '在时间间隔内最多允许提交的次数。', 'help' => '在时间间隔内最多允许提交的次数。',
'input_attrs' => [
'min' => '0',
'step' => '1',
],
'default_value' => $submission_frequency['limit'], 'default_value' => $submission_frequency['limit'],
'validator_php' => function ($x, &$vdata) { 'validator_php' => function ($x, &$vdata) {
if (!validateUInt($x)) { if (!validateUInt($x)) {