diff --git a/app/api/logic/GoodsLogic.php b/app/api/logic/GoodsLogic.php index eac7254e..2d4d7490 100755 --- a/app/api/logic/GoodsLogic.php +++ b/app/api/logic/GoodsLogic.php @@ -1170,8 +1170,16 @@ class GoodsLogic extends Logic ->where(['a.user_id' => $userId, 'a.order_type' => 4, 'og.goods_id' => $goods['id']]) ->where('a.order_status', '<', 4) ->find(); - dump($goods);die; - return $goods; + if (!empty($goods)) { + $goods['activity'] = [ + 'type' => 4, + 'type_desc' => '抢购商品', + 'in_groupbuy_activity' => true, + 'msg' => '您已购买过改商品!' + ]; + + return $goods; + } } }