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.
22 lines
1.4 KiB
22 lines
1.4 KiB
4 years ago
|
<?php
|
||
|
return [
|
||
|
'id_type' => [
|
||
|
1 => ['name' => '身份证', 'pattern' => '/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}(\d|x|X)$/'],
|
||
|
2 => ['name' => '组织机构代码证', 'pattern' => '/^[a-zA-Z0-9]{10,20}$/'],
|
||
|
3 => ['name' => '护照', 'pattern' => '/^[a-zA-Z0-9]{5,17}$/'],
|
||
|
4 => ['name' => '军官证', 'pattern' => '/^[0-9]{8}$/'],
|
||
|
5 => ['name' => '港澳居民来往内地通行证', 'pattern' => '/(H|M)(\d{10})$/'],
|
||
|
6 => ['name' => '其他', 'pattern' => '1'],
|
||
|
7 => ['name' => '港澳通行证', 'pattern' => '/^[CW]\d{8}$/'],
|
||
|
8 => ['name' => '出生证', 'pattern' => '/^[a-zA-Z0-9]{5,21}$/'],
|
||
|
9 => ['name' => '营业执照(社会统一信用代码)', 'pattern' => '/^[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/'],
|
||
|
10 => ['name' => '税务登记证', 'pattern' => '/^[0-9a-zA-z_]{18}$/'],
|
||
|
11 => ['name' => '驾驶证', 'pattern' => '/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}(\d|x|X)$/'],
|
||
|
12 => ['name' => '营业执照(区别与9,这是三证合一之前的)', 'pattern' => '/^[a-zA-Z0-9]{10,20}$/'],
|
||
|
13 => ['name' => '台胞证', 'pattern' => '/^([0-9]{8}|[0-9]{10})$/'],
|
||
|
14 => ['name' => '港澳身份证', 'pattern' => '1']
|
||
|
],
|
||
|
'email' => '/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/',
|
||
|
'phone' => '/^1(3|5|8|7|8|9)\d{9}$/',
|
||
|
];
|