报重修正

This commit is contained in:
mzl
2025-09-01 13:47:23 +08:00
parent b176c01f54
commit 45de47dd3d
+4 -1
View File
@@ -358,7 +358,10 @@ class CustomerService
* 查询客户关系是否重复
*/
public function distinct($params,$corpId){
// 9.1 add 报重修正
if (!$params['email'] && !$params['phone'] && !$params['whatsApp']) {
return false;
}
$customer = Customer::where('corp_id',$corpId)
->where((function (Builder $query) use ($params) {
if(!empty($params['email']))