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()