|
|
@ -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) |
|
|
|