wugg 2 years ago
parent
commit
cb1f27af4b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/txx/controller/Good.php

+ 3 - 2
app/txx/controller/Good.php

@@ -60,7 +60,6 @@ class Good extends BaseController
 		Db::startTrans();
 		try{
 			$data=[];
-
 			foreach ($snArr as $item){
 				$isExit = $actGood->find(["actCode"=>$actCode,"yz_good_code"=>$item['skuCode'],"roundId"=>$item['roundId']??"","is_del"=>0]);
 				if($isExit) throw new Exception("活动商品已添加",1006);
@@ -75,7 +74,7 @@ class Good extends BaseController
 					"roundId"=>$item['roundId']??"",
 					"good_url"=>$yzadd[$item['skuCode']]?$yzadd[$item['skuCode']]['detail_url']??"":"",
 					"origin_price"=>$yzadd[$item['skuCode']]?$yzadd[$item['skuCode']]['origin']??"":"",
-					"status"=>0,
+					"status"=>1,
 					"addtime"=>date("Y-m-d H:i:s"),
 					"updatetime"=>date("Y-m-d H:i:s")
 					];
@@ -449,9 +448,11 @@ class Good extends BaseController
      //获取跟有赞对接的平台所属的商品上线信息
     public function listByYz()
     {
+
     	 $this->noble=\think\facade\Config::get("noble");
         $order=\think\facade\Config::get("order");
         $this->acton=$order['order_type'];
+
         $param = $this->request->only([
             'page' => 1,
             'size' => 15,