wesmiler před 2 roky
rodič
revize
9b22298088
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/Services/Api/MessageService.php

+ 1 - 1
app/Services/Api/MessageService.php

@@ -160,7 +160,7 @@ class MessageService extends BaseService
         }
         }
 
 
         $field = ['title','type','to_uid','description','is_read','create_time'];
         $field = ['title','type','to_uid','description','is_read','create_time'];
-        $datas = $this->model->where(['to_uid'=> $userId,'status'=>1,'mark'=>1])
+        $datas = $this->model->where(['to_uid'=> $userId,'status'=>1,'marks'=>1])
             ->whereIn('type', $types)
             ->whereIn('type', $types)
             ->groupBy('type')
             ->groupBy('type')
             ->orderBy('type','asc')
             ->orderBy('type','asc')