Browse Source

搜索商品接口识别请求路径

master
Lemon 5 years ago
parent
commit
0ef7d1ac36
  1. 8
      app/Service/v3/Implementations/SearchService.php

8
app/Service/v3/Implementations/SearchService.php

@ -28,9 +28,11 @@ class SearchService implements SearchServiceInterface
->where([ ->where([
''.$storeTable.'.is_open' => StoreConstants::IS_OPEN_YES, ''.$storeTable.'.is_open' => StoreConstants::IS_OPEN_YES,
''.$storeTable.'.status' => StoreConstants::STATUS_PASS, ''.$storeTable.'.status' => StoreConstants::STATUS_PASS,
''.$storeTable.'.is_rest' => StoreConstants::IS_REST_NO
])
->where([
]);
if(!isset($params['frompage']) || $params['frompage'] != 'zh_cjdianc/pages/takeout/takeoutindex'){
$builder->where(''.$storeTable.'.is_rest',StoreConstants::IS_REST_NO);
}
$builder->where([
''.$goodsTable.'.market_id' => $params['market_id'], ''.$goodsTable.'.market_id' => $params['market_id'],
''.$goodsTable.'.on_sale' => GoodsConstants::ON_SALE_YES ''.$goodsTable.'.on_sale' => GoodsConstants::ON_SALE_YES
]) ])

Loading…
Cancel
Save