Commit 4fb3eadb authored by luhongguang's avatar luhongguang

update:活动详情

parent 69967162
...@@ -13,6 +13,7 @@ use App\Exception\custom\MarketingException; ...@@ -13,6 +13,7 @@ use App\Exception\custom\MarketingException;
use Api\PhpServices\Sensitive\Sensitive; use Api\PhpServices\Sensitive\Sensitive;
use App\Models\marketing\mysql\MarketingPindan; use App\Models\marketing\mysql\MarketingPindan;
use App\Models\marketing\mysql\MarketingTakePlace; use App\Models\marketing\mysql\MarketingTakePlace;
use App\Models\marketing\mysql\TakePlace;
use App\Services\common\CommonService; use App\Services\common\CommonService;
use App\Services\goods\GoodsService; use App\Services\goods\GoodsService;
use Daemon\Goods; use Daemon\Goods;
...@@ -837,7 +838,15 @@ class MarketingService ...@@ -837,7 +838,15 @@ class MarketingService
} }
} }
$takePlaceIds = MarketingTakePlace::getRecords(["marketing_id" => $marketingData["id"]], ["take_place_id"]);
$takePlaces = [];
if (!empty($takePlaceIds)) {
$takePlaceIds = array_column($takePlaceIds, "take_place_id");
$takePlaces = TakePlace::select("*", ["take_place_id" => $takePlaceIds]);
}
$info['goods_list'] = $goodsSkuList; $info['goods_list'] = $goodsSkuList;
$info['take_place'] = $takePlaces;
return $info; return $info;
} }
......
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