Commit 835587f3 by 杨树贤

时间校验

parent 24a9a03f
......@@ -23,15 +23,15 @@ class SupplierAttachmentValidator
$messages = $this->messages();
$validator = Validator::make($attachment, $rules, $messages);
if ($attachment['validity_type'] == 2 && !$attachment['validity_period']) {
return '附件有效期为自定义的时候,时间区间必须选择';
}
if ($validator->fails()) {
return $validator->errors()->first();
}
if ($attachment['validity_type'] == 2 && !$attachment['validity_period']) {
return '附件有效期为自定义的时候,时间区间必须选择';
}
}
private function messages()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment