panlumeng 3 년 전
부모
커밋
fab57fbe28
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/admin/controller/Cat.php

+ 1 - 1
app/admin/controller/Cat.php

@@ -67,7 +67,7 @@ public function title(){
     if($status!==""){
         $where[]=['status',"=",$status];
     }
-    $list = Db::name('cat')->where([$where])->select();
+    $list = Db::name('cat')->where($where)->select();
     return app_show(0, "获取成功",$list);
 }
 public function create()