报重修正
This commit is contained in:
@@ -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']))
|
||||
|
||||
Reference in New Issue
Block a user