24 lines
625 B
PHP
24 lines
625 B
PHP
<?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参数不能为空',
|
|
];
|
|
} |