|
@@ -11,7 +11,7 @@ class Inspection extends Validate
|
|
|
*/
|
|
|
protected $rule = [
|
|
|
// 基础信息
|
|
|
- 'id' => 'require|integer|gt:0',
|
|
|
+ 'id' => 'integer|gt:0',
|
|
|
'name' => 'require|length:1,50|chsAlpha',
|
|
|
'phone' => 'require|mobile|checkPhoneUnique',
|
|
|
'province_adcode' => 'require|max:50',
|
|
@@ -27,7 +27,7 @@ class Inspection extends Validate
|
|
|
*/
|
|
|
protected $message = [
|
|
|
// 基础信息
|
|
|
- 'id.require' => '申请ID不能为空',
|
|
|
+ // 'id.require' => '申请ID不能为空',
|
|
|
'id.integer' => '申请ID必须是整数',
|
|
|
'id.gt' => '申请ID必须大于0',
|
|
|
'name.require' => '姓名不能为空',
|