diff --git a/app/Filters/Admin/MonitorModeFilter.php b/app/Filters/Admin/MonitorModeFilter.php index abb8fa8..b3e8c3b 100644 --- a/app/Filters/Admin/MonitorModeFilter.php +++ b/app/Filters/Admin/MonitorModeFilter.php @@ -34,10 +34,12 @@ class MonitorModeFilter extends ModelFilter }; return $this->where('type', $type); } + /** * 分组 */ - public function groupTags($groupTags){ - return $this->whereRaw("FIND_IN_SET(group_tags,$groupTags)"); + public function groupTags($groupTags) + { + return $this->whereRaw("FIND_IN_SET(group_tags,'$groupTags')"); } }