You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
436 B
25 lines
436 B
10 months ago
|
<?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']
|
||
|
];
|
||
|
}
|