后端添加本地生活商品订单
This commit is contained in:
parent
0a46fcd6bb
commit
139bb7d2ac
@ -1068,7 +1068,7 @@ class GoodsLogic extends Logic
|
||||
|
||||
public static function rushBuy($goods){
|
||||
|
||||
// 判断是否是秒杀中的商品
|
||||
// 判断是否是抢购中的商品
|
||||
$GroupbuyGoods = GroupbuyGoods::where([
|
||||
['del', '=', 1],
|
||||
['goods_id', '=', $goods['id']],
|
||||
@ -1104,9 +1104,10 @@ class GoodsLogic extends Logic
|
||||
$item['market_price'] = $item['price'];
|
||||
// SKU替换抢购价
|
||||
$item['price'] = $GroupbuyGoods_info[$item['id']]['activity_price'];
|
||||
// SKU库存替换抢购库存
|
||||
$item['stock'] = $GroupbuyGoods_info[$item['id']]['stock'];
|
||||
}
|
||||
|
||||
$today_date = date('Y-m-d');
|
||||
$goods['activity'] = [
|
||||
'type' => 2,
|
||||
'type_desc' => '抢购商品',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user