客户模块联系人开放联系人手机号码同样限制

This commit is contained in:
hdm 2022-07-27 09:35:00 +08:00
parent 7542801721
commit 1ba9636455

View File

@ -13,13 +13,13 @@ class CustomerContactCheck extends Validate
{ {
protected $rule = [ protected $rule = [
'name' => 'require', 'name' => 'require',
'mobile' => 'require|unique:customer_contact', 'mobile' => 'require',
'id' => 'require', 'id' => 'require',
]; ];
protected $message = [ protected $message = [
'name.require' => '联系人姓名不能为空', 'name.require' => '联系人姓名不能为空',
'mobile.unique' => '同样的手机号码已经存在', 'mobile' => '手机号码不能为空',
'id.require' => '缺少更新条件', 'id.require' => '缺少更新条件',
]; ];