Commit 8f8bc41a authored by suntengda's avatar suntengda

add 拼单小程序活动列表新版接口 空数据判断逻辑

parent 0b097ad4
...@@ -1402,6 +1402,9 @@ class MarketingService ...@@ -1402,6 +1402,9 @@ class MarketingService
*/ */
public static function getGoodsSkuListByMarketingIds($marketingIds,$needSoldNum=true) public static function getGoodsSkuListByMarketingIds($marketingIds,$needSoldNum=true)
{ {
if(empty($marketingIds)) {
return [];
}
$marketingGoodsList = MarketingGoods::marketingGoodsList(['marketing_id' => $marketingIds, "ORDER" => ["id" => "ASC"]]); $marketingGoodsList = MarketingGoods::marketingGoodsList(['marketing_id' => $marketingIds, "ORDER" => ["id" => "ASC"]]);
$goodsSkuList = $picUrl =[]; $goodsSkuList = $picUrl =[];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment