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

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

@@ -209,7 +209,7 @@ public function create()
 //    $sale_rate = isset($this->post['sale_rate ']) && $this->post['sale_rate '] !== "" ? intval($this->post['sale_rate ']) : "";
 //    $lower_rate = isset($this->post['lower_rate']) && $this->post['lower_rate'] !== "" ? intval($this->post['lower_rate']) : "";
     $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{
         $data = [