first commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\validate\boc;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class ApplyOfficialValidate extends Validate
|
||||
{
|
||||
// 定义验证规则
|
||||
protected $rule = [
|
||||
'bankEstimateNo' => 'require',
|
||||
'preEstimateNoList' => 'require',
|
||||
'timestamp' => 'require',
|
||||
'reportType' => 'require|in:01,02,04',
|
||||
'companyCode' => 'require',
|
||||
'channelCode' => 'require|in:XJ,PH',
|
||||
];
|
||||
|
||||
// 定义错误消息
|
||||
protected $message = [
|
||||
'bankEstimateNo.require' => '银行正式评估申请编号不能为空',
|
||||
'preEstimateNoList.require' => '预评估编号列表不能为空',
|
||||
'timestamp.require' => '时间戳不能为空',
|
||||
'reportType.require' => '报告类型不能为空',
|
||||
'reportType.in' => '报告类型只能是01、02、04',
|
||||
'companyCode.require' => '公司编码不能为空',
|
||||
'channelCode.require' => '渠道标识不能为空',
|
||||
'channelCode.in' => '渠道标识只能是XJ或PH',
|
||||
];
|
||||
}
|
||||
24
pgserver/application/common/validate/boc/CommonValidate.php
Normal file
24
pgserver/application/common/validate/boc/CommonValidate.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\validate\boc;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class CommonValidate extends Validate
|
||||
{
|
||||
// 定义验证规则
|
||||
protected $rule = [
|
||||
'cipherkey' => 'require',
|
||||
'ciphertext' => 'require',
|
||||
'sign' => 'require',
|
||||
// 'companyCode' => 'require',
|
||||
];
|
||||
|
||||
// 定义错误消息
|
||||
protected $message = [
|
||||
'cipherkey.require' => 'cipherkey参数不能为空',
|
||||
'ciphertext.require' => 'ciphertext参数不能为空',
|
||||
'sign.require' => 'sign参数不能为空',
|
||||
// 'companyCode.require' => 'companyCode参数不能为空',
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?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' => '公司编码不能为空',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user