where('end_time', '>=', $now) ->where('status',StatusEnum::ENABLED) ->where('activity_status',ActivityEnum::ACTIVITY_STATUS_ONGOING) ->select(); //获取对应的商品 // 查询出活动中的商品数据 $activityGoods = ActivitySkuPrizeModel::whereIn('activity_id',$activityIds) ->where('status',StatusEnum::ENABLED) ->select(); return $activityGoods; } }