Commit db197299 authored by luhongguang's avatar luhongguang

update: 拼单活动商品排序

parent a4fa1e3c
......@@ -1017,13 +1017,17 @@ class MarketingService
}
}
foreach ($goodsSkuList as $key => $item) {
if ($item["inventory_rest"] == 0) {
unset($goodsSkuList[$key]);
array_push($goodsSkuList, $item);
//前端排序,后端不排库存
if (!empty($params["from"])) {
foreach ($goodsSkuList as $key => $item) {
if ($item["inventory_rest"] == 0) {
unset($goodsSkuList[$key]);
array_push($goodsSkuList, $item);
}
}
$goodsSkuList = array_values($goodsSkuList);
}
$goodsSkuList = array_values($goodsSkuList);
}
$takePlaceIds = MarketingTakePlace::getRecords(["marketing_id" => $marketingData["id"]], ["take_place_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