chuweiqiang vor 1 Jahr
Ursprung
Commit
f2bf28b81e
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      application/api/controller/Books.php

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

@@ -202,7 +202,7 @@ class Books extends Api
             ->where('is_series',0)
             ->field('id,title,image,book_type,is_new_recommend,author,is_awards,price,entity_price,createtime,updatetime,level_id,arrangement_id,speciality_id,series_id,is_series')
             ->select();
-        $lists = $list->toArray();
+        $lists = $list;
         if($this->auth->isLogin()) {
             $uid = $this->auth->id;
             foreach ($lists as $k => $v) {