Commit 253aa0f5 authored by 孟维甫's avatar 孟维甫

Merge branch 'jielong' into 'test'

Jielong

See merge request bp/goods!5
parents 1cf94296 bfa047eb
......@@ -891,10 +891,14 @@ class MarketingService
$lifeAccountList = CommonService::getlifeAccountList(['life_account_id' => [$pindanMarketing["publish_life_account_id"]]]);
$goodsSkuList = MarketingGoods::marketingGoodsList(['marketing_id' => $params['marketing_id']]);
$goodsSkuList = !empty($goodsSkuList) ? $goodsSkuList : [];
$goodsSkuId = array_column($goodsSkuList , 'goods_sku_id');
$goodsSkuList = PindanGoodsSku::select('*', ['goods_sku_id' => $goodsSkuId]);
if (!empty($goodsSkuList)) {
$goodsSkuId = array_column($goodsSkuList , 'goods_sku_id');
$goodsSkuList = PindanGoodsSku::select('*', ['goods_sku_id' => $goodsSkuId]);
}
empty($goodsSkuList) && $goodsSkuList = [];
$marketingData["life_account_name"] = $marketingData["life_account_icon"] = "";
if (!empty($lifeAccountList[$pindanMarketing["publish_life_account_id"]])) {
......
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