chuweiqiang 11 mēneši atpakaļ
vecāks
revīzija
0d2e28ee89
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      application/api/controller/Books.php

+ 1 - 0
application/api/controller/Books.php

@@ -113,6 +113,7 @@ class Books extends Api
         //关键字
         if ( isset($data['keywords']) && $data['keywords'] != '' && $data['keywords'] != null){
             $where['title'] = ['like','%'.$data['keywords'].'%'];
+            $where['author'] = ['like','%'.$data['keywords'].'%'];
         }
 
         $where['is_deleted'] = 1;