2 Commits 7ff3e2703a ... 9ebc0e53e8

Tác giả SHA1 Thông báo Ngày
  rkljw 9ebc0e53e8 Merge branch 'master' of http://git.bjzxtw.org.cn:3000/zxt/public_producer 1 tuần trước cách đây
  rkljw 955b270528 过滤孪生站 1 tuần trước cách đây
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      app/JsonRpc/WebsiteService.php

+ 9 - 0
app/JsonRpc/WebsiteService.php

@@ -961,6 +961,15 @@ class WebsiteService implements WebsiteServiceInterface
             array_push($where, ['website.website_name', 'like', '%' . $data['keyword'] . '%']);
         }
         $result = Website::where($where)->get();
+
+        if (isset($data['website_column_id'])) {
+            $target = $data['website_column_id'];
+            $result = $result->filter(function ($item) use ($target) {
+                $arr = json_decode($item->website_column_arr_id, true);
+                return !in_array($target, $arr);
+            });
+        }
+
         if ($result) {
             return Result::success($result);
         } else {