panlumeng 3 years ago
parent
commit
fab57fbe28
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/Cat.php

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

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