Browse Source

店铺列表

master
Lemon 5 years ago
parent
commit
002b2369fe
  1. 6
      app/Service/v3/Implementations/StoreService.php

6
app/Service/v3/Implementations/StoreService.php

@ -69,8 +69,10 @@ class StoreService implements StoreServiceInterface
$stores = $paginate->toArray(); $stores = $paginate->toArray();
$market->stores = $stores['data']; $market->stores = $stores['data'];
$newIds = array_values(array_column($stores['data'], 'id')); $newIds = array_values(array_column($stores['data'], 'id'));
$ids = array_merge($newIds,$ids);
return ['has_more_pages' => $paginate->hasMorePages(), 'market' => $market,'ids' => $ids];
if(!is_null($ids)){
$newIds = array_merge($newIds,$ids);
}
return ['has_more_pages' => $paginate->hasMorePages(), 'market' => $market,'ids' => $newIds];
} }
public function getListByMarketId($marketId, $page=1, $pagesize=10) public function getListByMarketId($marketId, $page=1, $pagesize=10)

Loading…
Cancel
Save