diff --git a/app/controller/CustomerController.php b/app/controller/CustomerController.php index 1763baa..5d6fc82 100644 --- a/app/controller/CustomerController.php +++ b/app/controller/CustomerController.php @@ -200,6 +200,7 @@ class CustomerController // }); //查询有$tagId 里所有标签的客户 + $tagId = explode(',', $tagId); foreach ($tagId as $id) { $query->whereHas('tags', function($query) use ($id){ $query->where('tag.id', $id);