asset testing

This commit is contained in:
2019-07-05 01:31:47 -05:00
parent d19202de9b
commit e9d0a8a9df
2 changed files with 4 additions and 4 deletions

View File

@@ -121,10 +121,10 @@ class GetAssetsCommand extends Command
for($i = 1; $i < $pages; $i++) {
$currentPage = $i;
$aHelper = new AssetHelper($charId, $corpId);
$aHelper = new AssetHelper($charId, $corpId, $currentPage);
//Get a page of assets
$assets = $aHelper->GetAssetsByPage($currentPage);
$assets = $aHelper->GetAssetsByPage();
foreach($assets as $asset) {
$aHelper->StoreNewAsset($asset);

View File

@@ -36,7 +36,7 @@ class AssetHelper {
/**
* Get Assets By Page in order to store in the database
*/
public function GetAssetsByPage($page) {
public function GetAssetsByPage() {
// Disable all caching by setting the NullCache as the
// preferred cache handler. By default, Eseye will use the
// FileCache.
@@ -54,7 +54,7 @@ class AssetHelper {
]);
//Setup the ESI variable
$esi = new Eseye($authentication);
try {
$assets = $esi->page($this->page)
->invoke('get', '/corporations/{corporation_id}/assets', [