mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
Item Shop V3 Support
This commit is contained in:
@@ -6350,5 +6350,57 @@
|
||||
"_locale": "en-US",
|
||||
"_templateName": "FortniteGameShopSections"
|
||||
},
|
||||
"mpItemShop": {
|
||||
"shopData": {
|
||||
"_type": "MP Item Shop - Data Root",
|
||||
"sections": [
|
||||
{
|
||||
"metadata": {
|
||||
"offerGroups": [
|
||||
{
|
||||
"bUseWidePreview": false,
|
||||
"_type": "MP Item Shop - Row",
|
||||
"offerGroupId": "99",
|
||||
"stackRanks": [
|
||||
{
|
||||
"stackRankValue": 99,
|
||||
"_type": "MP Item Shop - Stack Rank",
|
||||
"context": "battleRoyale",
|
||||
"contentType": "battleRoyale",
|
||||
"startDate": "2023-01-01T00:00:00.000Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"background": {
|
||||
"_type": "MP Item Shop - Background",
|
||||
"customTexture": ""
|
||||
},
|
||||
"_type": "MP Item Shop - Section Metadata",
|
||||
"showIneligibleOffers": "Always",
|
||||
"stackRanks": [
|
||||
{
|
||||
"stackRankValue": 79,
|
||||
"_type": "MP Item Shop - Stack Rank",
|
||||
"context": "battleRoyale",
|
||||
"contentType": "battleRoyale",
|
||||
"startDate": "2023-01-01T00:00:00.000Z"
|
||||
}
|
||||
]
|
||||
},
|
||||
"displayName": "LawinServer Item Shop",
|
||||
"_type": "MP Item Shop - Section",
|
||||
"sectionID": "LawinServer",
|
||||
"category": "LawinServer Item Shop"
|
||||
}
|
||||
]
|
||||
},
|
||||
"_title": "mp-item-shop",
|
||||
"_noIndex": false,
|
||||
"_activeDate": "2023-12-31T23:45:00.000Z",
|
||||
"lastModified": "2023-12-31T19:09:35.746Z",
|
||||
"_locale": "en-US",
|
||||
"_templateName": "FortniteGameMPItemShop"
|
||||
},
|
||||
"_suggestedPrefetch": []
|
||||
}
|
||||
2318
responses/epic-settings.json
Normal file
2318
responses/epic-settings.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -75,7 +75,7 @@ function getItemShop() {
|
||||
for (var value in CatalogConfig) {
|
||||
if (Array.isArray(CatalogConfig[value].itemGrants)) {
|
||||
if (CatalogConfig[value].itemGrants.length != 0) {
|
||||
const CatalogEntry = {"devName":"","offerId":"","fulfillmentIds":[],"dailyLimit":-1,"weeklyLimit":-1,"monthlyLimit":-1,"categories":[],"prices":[{"currencyType":"MtxCurrency","currencySubType":"","regularPrice":0,"finalPrice":0,"saleExpiration":"9999-12-02T01:12:00Z","basePrice":0}],"meta":{"SectionId":"Featured","TileSize":"Small"},"matchFilter":"","filterWeight":0,"appStoreId":[],"requirements":[],"offerType":"StaticPrice","giftInfo":{"bIsEnabled":false,"forcedGiftBoxTemplateId":"","purchaseRequirements":[],"giftRecordIds":[]},"refundable":true,"metaInfo":[{"key":"SectionId","value":"Featured"},{"key":"TileSize","value":"Small"}],"displayAssetPath":"","itemGrants":[],"sortPriority":0,"catalogGroupPriority":0};
|
||||
const CatalogEntry = {"devName":"","offerId":"","fulfillmentIds":[],"dailyLimit":-1,"weeklyLimit":-1,"monthlyLimit":-1,"categories":[],"prices":[{"currencyType":"MtxCurrency","currencySubType":"","regularPrice":0,"finalPrice":0,"saleExpiration":"9999-12-02T01:12:00Z","basePrice":0}],"meta":{"NewDisplayAssetPath":"","SectionId":"Featured","LayoutId":"LawinServer.99","TileSize":"Small","AnalyticOfferGroupId":"LawinServer/Attitude8","FirstSeen":"2/2/2020"},"matchFilter":"","filterWeight":0,"appStoreId":[],"requirements":[],"offerType":"StaticPrice","giftInfo":{"bIsEnabled":false,"forcedGiftBoxTemplateId":"","purchaseRequirements":[],"giftRecordIds":[]},"refundable":true,"metaInfo":[{"key":"NewDisplayAssetPath","value":"="},{"key":"SectionId","value":"Featured"},{"key":"LayoutId","value":"LawinServer.99"},{"key":"TileSize","value":"Small"},{"key":"AnalyticOfferGroupId","value":"LawinServer/Attitude8"},{"key":"FirstSeen","value":"2/2/2020"}],"displayAssetPath":"","itemGrants":[],"sortPriority":0,"catalogGroupPriority":0};
|
||||
|
||||
if (value.toLowerCase().startsWith("daily")) {
|
||||
catalog.storefronts.forEach((storefront, i) => {
|
||||
@@ -132,7 +132,7 @@ function getItemShop() {
|
||||
CatalogEntry.prices[0].finalPrice = CatalogConfig[value].price
|
||||
|
||||
CatalogEntry.meta.TileSize = "Normal"
|
||||
CatalogEntry.metaInfo[1].value = "Normal"
|
||||
CatalogEntry.metaInfo[3].value = "Normal"
|
||||
|
||||
if (CatalogEntry.itemGrants.length != 0) {
|
||||
catalog.storefronts[i].catalogEntries.push(CatalogEntry);
|
||||
|
||||
@@ -466,7 +466,8 @@ express.get("/region", async (req, res) => {
|
||||
|
||||
// Parental Controls
|
||||
express.all("/v1/epic-settings/public/users/*/values", async (req, res) => {
|
||||
res.json({})
|
||||
const epicsettings = require("./../responses/epic-settings.json");
|
||||
res.json(epicsettings)
|
||||
})
|
||||
|
||||
express.get("/fortnite/api/game/v2/br-inventory/account/*", async (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user