init
- 框架初始化 - 安装插件 - 修复PHP8.4报错
This commit is contained in:
24
addons/shopro/validate/user/Invoice.php
Normal file
24
addons/shopro/validate/user/Invoice.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace addons\shopro\validate\user;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class Invoice extends Validate
|
||||
{
|
||||
protected $rule = [
|
||||
'type' => 'require',
|
||||
'name' => 'require',
|
||||
];
|
||||
|
||||
protected $message = [
|
||||
'type.require' => '请选择发票类型',
|
||||
'name.require' => '请填写发票名称',
|
||||
];
|
||||
|
||||
|
||||
protected $scene = [
|
||||
'add' => ['type', 'name'],
|
||||
'edit' => ['name']
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user