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

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

@@ -324,7 +324,7 @@ public function edit(){
     //$level = isset($this->post['level']) && $this->post['level'] !=="" ? intval($this->post['level']) :"";
 
     $weight = isset($this->post['weight']) && $this->post['weight']!==""? intval($this->post['weight']):"0";
-    $status = isset($this->post['status']) && $this->post['status'] !==""?intval($this->post['status']) :"1";
+    $status = isset($this->post['status']) && $this->post['status'] !==""?intval($this->post['status']) :"0";
     Db::startTrans();
     try{
         $str = [