refactor: 修改验证多语言提示

This commit is contained in:
2025-05-30 13:36:57 +08:00
parent a998237ad2
commit e0ef5d1dfe
6 changed files with 58 additions and 60 deletions

View File

@@ -32,18 +32,18 @@ class ContactUsBulkBuyValidate extends Validate
*/
protected $message = [
'corp_name.require' => '公司名称不能为空',
'corp_name.max' => '公司名称不能超过128个字符',
'url.max' => '网址不能超过255个字符',
'corp_name.max' => '公司名称不能超过:rule个字符',
'url.max' => '网址不能超过:rule个字符',
'first_name.require' => '名不能为空',
'first_name.max' => '名不能超过64个字符',
'first_name.max' => '名不能超过:rule个字符',
'last_name.require' => '姓不能为空',
'last_name.max' => '姓不能超过64个字符',
'last_name.max' => '姓不能超过:rule个字符',
'email.require' => '邮箱不能为空',
'email.email' => '邮箱格式不正确',
'email.max' => '邮箱不能超过128个字符',
'phone.max' => '电话号码不能超过32个字符',
'interested.max' => '感兴趣的产品种类不能超过255个字符',
'email.max' => '邮箱不能超过:rule个字符',
'phone.max' => '电话号码不能超过:rule个字符',
'interested.max' => '感兴趣的产品种类不能超过:rule个字符',
'message.require' => '留言内容不能为空',
'message.max' => '留言内容不能超过1024个字符',
'message.max' => '留言内容不能超过:rule个字符',
];
}