作者 郭鑫
1 个管道 的构建 通过 耗费 1 秒

雇人修改

... ... @@ -22,7 +22,7 @@ class HireValidate extends Validate
'end_time' => 'require',
'address' => 'require',
'else' => 'require',
'people' => 'require',
'people' => 'require|number|max:1000',
];
protected $message = [
'select_id.require' => '雇佣事项不为空!',
... ... @@ -33,6 +33,8 @@ class HireValidate extends Validate
'address.require' => '工作地点不能为空!',
'else.require' => '工作要求不能为空!',
'people.require' => '招聘人数不能为空!',
'people.number' => '招聘人数只能为数字!',
'people.max' => '招聘人数不得超过1000人!',
];
... ...