33 lines
1.2 KiB
PHP
33 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace app\common\validate\boc;
|
|
|
|
use think\Validate;
|
|
|
|
class PreApplyValidate extends Validate
|
|
{
|
|
// 定义验证规则
|
|
protected $rule = [
|
|
'bankPreEstimateNo' => 'require',
|
|
'bankerName' => 'require',
|
|
'bankerPhone' => 'require',
|
|
'propertyCard' => 'require',
|
|
'propertyCardType' => 'require',
|
|
'channelCode' => 'require|in:XJ,PH',
|
|
'timestamp' => 'require',
|
|
'companyCode' => 'require',
|
|
];
|
|
|
|
// 定义错误消息
|
|
protected $message = [
|
|
'bankPreEstimateNo.require' => '银行预评估申请编号不能为空',
|
|
'bankerName.require' => '客户经理姓名不能为空',
|
|
'bankerPhone.require' => '电话号码不能为空',
|
|
'propertyCard.require' => '产权证不能为空',
|
|
'propertyCardType.require' => '产权证文件格式不能为空',
|
|
'channelCode.require' => '渠道标识不能为空',
|
|
'channelCode.in' => '渠道标识只能是XJ或PH',
|
|
'timestamp.require' => '时间戳不能为空',
|
|
'companyCode.require' => '公司编码不能为空',
|
|
];
|
|
} |