Commit dabed4af by 杨树贤

校验问题

parent 84067284
...@@ -31,7 +31,7 @@ class SupplierAttachmentValidator ...@@ -31,7 +31,7 @@ class SupplierAttachmentValidator
->value('supplier_group'); ->value('supplier_group');
//供应商为混合分销商的时候,代理证的有效期必填 //供应商为混合分销商的时候,代理证的有效期必填
if ($supplierGroup == SupplierChannelModel::SUPPLIER_GROUP_MIX && !$attachment['validity_period']) { if ($supplierGroup == SupplierChannelModel::SUPPLIER_GROUP_MIX && !$attachment['validity_period'] && $attachment['field_name']=='proxy_certificate') {
return '供应商为混合分销商的时候,代理证的必须为自定义且必填'; return '供应商为混合分销商的时候,代理证的必须为自定义且必填';
} }
......
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