wugg 1 year ago
parent
commit
6b4fca0830
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/bbc/controller/Good.php

+ 2 - 1
app/bbc/controller/Good.php

@@ -124,7 +124,7 @@ class Good extends Base
         	//使用实时金价
         	 $nake=$goodNake->where(['spuCode'=> $platform->spuCode,'is_del'=>0,'nake_fee'=>0])
         	 ->findOrEmpty();
-        	 if($nake->isEmpty()) $this->error('一口价商品请先完善商品成本单价');
+        	 if($nake->isEmpty()==false) $this->error('一口价商品请先完善商品成本单价');
         }
         if($post['exam_status']==3){
             $is_exit = $goodPlat
@@ -214,6 +214,7 @@ class Good extends Base
                    	$enevt=[
                    		    'spuCode' => $platform->spuCode,
                             'skuCodes' => $platform->skuCode,
+                            'type' => 2,
                             'good_name' => (new GoodBasic())->where('spuCode',$platform->spuCode)->value('good_name', ''),
                             'offline_reason' => $post['offline_reason'],
                             'offline_remark' => $post['offline_remark'],