mirror of
https://gitee.com/technical-laohu/mpay_v2_webman.git
synced 2026-04-21 17:44:27 +08:00
1. 调整异常处理类
2. 统一职责分工 3. 清除多余代码
This commit is contained in:
23
app/validation/SystemConfigValidator.php
Normal file
23
app/validation/SystemConfigValidator.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace app\validation;
|
||||
|
||||
use support\validation\Validator;
|
||||
|
||||
class SystemConfigValidator extends Validator
|
||||
{
|
||||
protected array $rules = [
|
||||
'config_key' => 'string|max:100',
|
||||
'config_value' => 'nullable|string',
|
||||
];
|
||||
|
||||
protected array $messages = [];
|
||||
|
||||
protected array $attributes = [
|
||||
'config_key' => '配置项键名',
|
||||
'config_value' => '配置项值',
|
||||
];
|
||||
|
||||
protected array $scenes = [];
|
||||
}
|
||||
Reference in New Issue
Block a user