ledger job

This commit is contained in:
2021-02-22 23:01:22 +09:00
parent fc7dde27c4
commit 1743ffc14f

View File

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