|
|
|
@ -16,6 +16,7 @@ class InvoiceIssuanceValidate extends Validate |
|
|
|
'expire_time|到期时间' => 'require', |
|
|
|
'mobile|手机号' => 'require|mobile', |
|
|
|
'email|邮箱' => 'require|email', |
|
|
|
'amount|开票金额' => 'require', |
|
|
|
'id|发票编号' => 'require|number' |
|
|
|
]; |
|
|
|
|
|
|
|
@ -35,8 +36,8 @@ class InvoiceIssuanceValidate extends Validate |
|
|
|
* 验证场景. |
|
|
|
*/ |
|
|
|
protected $scene = [ |
|
|
|
'add' => ['project_id', 'merge', 'pucode_id', 'expire_time', 'mobile', 'email'], |
|
|
|
'edit' => ['project_id', 'merge', 'pucode_id', 'expire_time', 'mobile', 'email', 'id'], |
|
|
|
'add' => ['project_id', 'merge', 'pucode_id', 'expire_time', 'mobile', 'email', 'amount'], |
|
|
|
'edit' => ['project_id', 'merge', 'pucode_id', 'expire_time', 'mobile', 'email', 'amount', 'id'], |
|
|
|
'delete' => ['id'] |
|
|
|
]; |
|
|
|
|
|
|
|
|