xieruidong 2 년 전
부모
커밋
fb283af0dc
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      application/admin/controller/Goods.php

+ 3 - 0
application/admin/controller/Goods.php

@@ -97,6 +97,9 @@ class Goods extends Backend
     protected function makeVal(){
         $data=input('row/a');
         $data['logo']=array_filter(explode(',',$data['logo']??''));
+        if(!empty($data['is_kill'])||$data['is_kill']==0){
+            unset($data['amount_kill']);
+        }
         $this->validate($data,[
             'name|商品名称'=>['require'],
             'category_id|商品分类'=>['require'],