panlumeng 3 лет назад
Родитель
Сommit
8ef1b743d0
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      app/admin/controller/Allot.php

+ 5 - 5
app/admin/controller/Allot.php

@@ -276,10 +276,10 @@ class Allot extends BaseController
             return error_show(1002,"入库仓库不能为空");
         }
         $post_fee= isset($this->post['post_fee']) && $this->post['post_fee'] !=="" ? trim($this->post['post_fee']) :"" ;
-        $status= isset($this->post['status']) && $this->post['status'] !=="" ? trim($this->post['status']) :"" ;
-        if($status==""){
-            return error_show(1002,"状态不能为空");
-        }
+//        $status= isset($this->post['status']) && $this->post['status'] !=="" ? trim($this->post['status']) :"" ;
+//        if($status==""){
+//            return error_show(1002,"状态不能为空");
+//        }
         $dain = isset($this->post['good']) && $this->post['good'] !=="" ? $this->post['good']:"";
         if($dain==""){
             return error_show(1002,"商品不能为空");
@@ -295,7 +295,7 @@ class Allot extends BaseController
                 "post_fee"=>$post_fee,
                 "post_name"=>$post_name,
                 "post_code"=>$post_code,
-                "status"=>$status,
+//                "status"=>$status,
                 "updatetime"=>date('Y-m-d H:i:s'),
             ];
             $da = Db::name('allot_stock')->where(["id"=>$id,"is_del"=>0])->save($data);