修改活动商品列表

This commit is contained in:
luofei 2024-01-27 14:33:55 +08:00
parent 66a30f717d
commit 4b4449fbe5
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class StoreActivityDao extends BaseDao
public function product($userId, $location, $streetCode, $activityId) public function product($userId, $location, $streetCode, $activityId)
{ {
[$lat, $lng] = (new CityAreaDao())->getLngAndLat($location, $streetCode); [$lat, $lng] = (new CityAreaDao())->getLngAndLat($location, $streetCode);
$cloud_product_arr = (new CloudProductDao())->getByDistance($lat, $lng, ['activity_id' => $activityId], 4); $cloud_product_arr = (new CloudProductDao())->getByDistance($lat, $lng, ['activity_id' => $activityId], 5);
$cloud_product = []; $cloud_product = [];
foreach ($cloud_product_arr as $key => $value) { foreach ($cloud_product_arr as $key => $value) {
$cloud_product[] = $value['product_id']; $cloud_product[] = $value['product_id'];

View File

@ -41,7 +41,7 @@ class CloudProductDao extends BaseDao
{ {
$query = CloudProduct::where('status', 1) $query = CloudProduct::where('status', 1)
->where($where) ->where($where)
->whereIn('store_name', ['耶贝尔柔韧布质竹纸特惠装10包', '家家宜除菌洗衣液阳光清香1千克', '家家宜除菌洗衣粉阳光清香1千克-New版', '家家宜柠檬高效除油洗洁精1.12千克']) ->whereIn('store_name', ['耶贝尔柔韧布质竹纸特惠装10包', '家家宜除菌洗衣液阳光清香1千克', '家家宜除菌洗衣粉阳光清香1千克-New版', '家家宜柠檬高效除油洗洁精1.12千克', '蔺艺挂面1.5千克'])
->whereIn('type_id', [10, 17]) ->whereIn('type_id', [10, 17])
->whereNotNull('lat') ->whereNotNull('lat')
->whereNotNull('long') ->whereNotNull('long')