X-Git-Url: https://git.cweiske.de/stouyapi.git/blobdiff_plain/ed666350a734bd9e96f4879de19b31f584a7fb48..f19759be619ef2263f7724572ddfde14da47ab9a:/bin/import-game-data.php diff --git a/bin/import-game-data.php b/bin/import-game-data.php index 1eb783c..0227b45 100755 --- a/bin/import-game-data.php +++ b/bin/import-game-data.php @@ -176,7 +176,7 @@ function buildDiscover(array $games) writeJson( 'api/v1/discover-data/' . categoryPath('Random') . '.json', buildSpecialCategory( - 'Random' . date('Y-m-d H:i'), + 'Random ' . date('Y-m-d H:i'), filterRandom($games, 99) ) ); @@ -380,12 +380,13 @@ function buildProduct($product) return null; } return [ - 'type' => 'entitlement', + 'type' => $product->type ?? 'entitlement', 'identifier' => $product->identifier, 'name' => $product->name, 'description' => $product->description ?? '', 'localPrice' => $product->localPrice, 'originalPrice' => $product->originalPrice, + 'priceInCents' => $product->originalPrice * 100, 'percentOff' => 0, 'currency' => $product->currency, ];