mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
Fix the Item Shop for v30.10+
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
const Express = require("express");
|
||||
const express = Express.Router();
|
||||
const functions = require("./functions.js");
|
||||
const catalog = functions.getItemShop();
|
||||
const keychain = require("./../responses/keychain.json");
|
||||
|
||||
express.get("/fortnite/api/storefront/v2/catalog", async (req, res) => {
|
||||
@@ -9,6 +8,13 @@ express.get("/fortnite/api/storefront/v2/catalog", async (req, res) => {
|
||||
return res.status(404).end();
|
||||
}
|
||||
|
||||
var catalog = functions.getItemShop();
|
||||
const memory = functions.GetVersionInfo(req);
|
||||
|
||||
if (memory.build >= 30.10) {
|
||||
catalog = JSON.parse(JSON.stringify(catalog).replace(/"Normal"/g, '"Size_1_x_2"'));
|
||||
}
|
||||
|
||||
res.json(catalog);
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user