Selaa lähdekoodia

会员不显示游客数据

lip 14 tuntia sitten
vanhempi
sitoutus
17ed7979b4
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      app/Services/UserService.php

+ 1 - 0
app/Services/UserService.php

@@ -45,6 +45,7 @@ class UserService extends BaseService
     public static function getWhere(array $search = []): array
     {
         $where = [];
+        $where[] = ['from', '<>', 2];
         if (isset($search['id']) && !empty($search['id'])) {
             $where[] = ['users.id', '=', $search['id']];
         }