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++) { for($i = 1; $i < $pages; $i++) {
$currentPage = $i; $currentPage = $i;
$aHelper = new AssetHelper($charId, $corpId); $aHelper = new AssetHelper($charId, $corpId, $currentPage);
//Get a page of assets //Get a page of assets
$assets = $aHelper->GetAssetsByPage($currentPage); $assets = $aHelper->GetAssetsByPage();
foreach($assets as $asset) { foreach($assets as $asset) {
$aHelper->StoreNewAsset($asset); $aHelper->StoreNewAsset($asset);

View File

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