ledger job
This commit is contained in:
@@ -46,12 +46,11 @@ class LookupHelper {
|
||||
$itemName,
|
||||
))->invoke('post', '/universe/ids/');
|
||||
} catch(RequestFailedException $e) {
|
||||
printf("Failed to get the item information");
|
||||
Log::warning('Failed to get item information from /universe/');
|
||||
return null;
|
||||
}
|
||||
|
||||
dd($response);
|
||||
|
||||
if(isset($response->inventory_types)) {
|
||||
return $response->inventory_types[0]->id;
|
||||
} else {
|
||||
@@ -73,10 +72,13 @@ class LookupHelper {
|
||||
'type_id' => $itemId,
|
||||
]);
|
||||
} catch(RequestFailedException $e) {
|
||||
printf("Failed to get the item name from the id.");
|
||||
Log::warning('Failed to get item information from /universe/types/{type_id}/ in LookupHelper.');
|
||||
return null;
|
||||
}
|
||||
|
||||
dd($response);
|
||||
|
||||
if(isset($response->description)) {
|
||||
$this->StoreItem($response);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user