获取活动中的商品
This commit is contained in:
parent
be34586788
commit
ffd01c74d2
@ -1170,8 +1170,16 @@ class GoodsLogic extends Logic
|
|||||||
->where(['a.user_id' => $userId, 'a.order_type' => 4, 'og.goods_id' => $goods['id']])
|
->where(['a.user_id' => $userId, 'a.order_type' => 4, 'og.goods_id' => $goods['id']])
|
||||||
->where('a.order_status', '<', 4)
|
->where('a.order_status', '<', 4)
|
||||||
->find();
|
->find();
|
||||||
dump($goods);die;
|
|
||||||
return $goods;
|
|
||||||
|
|
||||||
|
if (!empty($goods)) {
|
||||||
|
$goods['activity'] = [
|
||||||
|
'type' => 4,
|
||||||
|
'type_desc' => '抢购商品',
|
||||||
|
'in_groupbuy_activity' => true,
|
||||||
|
'msg' => '您已购买过改商品!'
|
||||||
|
];
|
||||||
|
|
||||||
|
return $goods;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user