mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 10:52:23 +01:00
Fixed MOTD not appearing on latest
This commit is contained in:
@@ -340,7 +340,9 @@
|
|||||||
"accountId": "epic",
|
"accountId": "epic",
|
||||||
"creatorName": "Epic",
|
"creatorName": "Epic",
|
||||||
"descriptionTags": [],
|
"descriptionTags": [],
|
||||||
|
"discoveryIntent": "PUBLIC",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"product_tag": "Product.LawinServer",
|
||||||
"image_url": "https://cdn2.unrealengine.com/solo-1920x1080-1920x1080-bc0a5455ce20.jpg",
|
"image_url": "https://cdn2.unrealengine.com/solo-1920x1080-1920x1080-bc0a5455ce20.jpg",
|
||||||
"alt_introduction": {
|
"alt_introduction": {
|
||||||
"ar": "انطلق وحدك في معركة لتصبح آخر لاعب صامد.",
|
"ar": "انطلق وحدك في معركة لتصبح آخر لاعب صامد.",
|
||||||
@@ -418,7 +420,9 @@
|
|||||||
"accountId": "epic",
|
"accountId": "epic",
|
||||||
"creatorName": "Epic",
|
"creatorName": "Epic",
|
||||||
"descriptionTags": [],
|
"descriptionTags": [],
|
||||||
|
"discoveryIntent": "PUBLIC",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"product_tag": "Product.LawinServer",
|
||||||
"image_url": "https://cdn2.unrealengine.com/duos-1920x1080-1920x1080-5a411fe07b21.jpg",
|
"image_url": "https://cdn2.unrealengine.com/duos-1920x1080-1920x1080-5a411fe07b21.jpg",
|
||||||
"alt_introduction": {
|
"alt_introduction": {
|
||||||
"ar": "تعاون مع أحد الأصدقاء واقض على الجميع.",
|
"ar": "تعاون مع أحد الأصدقاء واقض على الجميع.",
|
||||||
@@ -496,7 +500,9 @@
|
|||||||
"accountId": "epic",
|
"accountId": "epic",
|
||||||
"creatorName": "Epic",
|
"creatorName": "Epic",
|
||||||
"descriptionTags": [],
|
"descriptionTags": [],
|
||||||
|
"discoveryIntent": "PUBLIC",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"product_tag": "Product.LawinServer",
|
||||||
"image_url": "https://cdn2.unrealengine.com/trios-1920x1080-1920x1080-d5054bb9691a.jpg",
|
"image_url": "https://cdn2.unrealengine.com/trios-1920x1080-1920x1080-d5054bb9691a.jpg",
|
||||||
"alt_introduction": {
|
"alt_introduction": {
|
||||||
"ar": "باتل رويال الكلاسيكية بفرق مكونة من ثلاثة أشخاص.",
|
"ar": "باتل رويال الكلاسيكية بفرق مكونة من ثلاثة أشخاص.",
|
||||||
@@ -574,7 +580,9 @@
|
|||||||
"accountId": "epic",
|
"accountId": "epic",
|
||||||
"creatorName": "Epic",
|
"creatorName": "Epic",
|
||||||
"descriptionTags": [],
|
"descriptionTags": [],
|
||||||
|
"discoveryIntent": "PUBLIC",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"product_tag": "Product.LawinServer",
|
||||||
"image_url": "https://cdn2.unrealengine.com/squads-1920x1080-1920x1080-095c0732502e.jpg",
|
"image_url": "https://cdn2.unrealengine.com/squads-1920x1080-1920x1080-095c0732502e.jpg",
|
||||||
"alt_introduction": {
|
"alt_introduction": {
|
||||||
"ar": "انضم لمجموعة وتفوق على جميع الفرق الأخرى التي تقاتل للوصول للنصر.",
|
"ar": "انضم لمجموعة وتفوق على جميع الفرق الأخرى التي تقاتل للوصول للنصر.",
|
||||||
@@ -654,7 +662,9 @@
|
|||||||
"descriptionTags": [
|
"descriptionTags": [
|
||||||
"pve"
|
"pve"
|
||||||
],
|
],
|
||||||
|
"discoveryIntent": "PUBLIC",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"product_tag": "Product.LawinServer",
|
||||||
"ownership_token": "Token:campaignaccess",
|
"ownership_token": "Token:campaignaccess",
|
||||||
"image_url": "https://cdn2.unrealengine.com/stw-1920-1920x1080-5a049ecca449.jpg",
|
"image_url": "https://cdn2.unrealengine.com/stw-1920-1920x1080-5a049ecca449.jpg",
|
||||||
"alt_introduction": {
|
"alt_introduction": {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
},
|
},
|
||||||
"FullScreenBody": {
|
"FullScreenBody": {
|
||||||
"ar": "استمتع بتجربة لعب استثنائية!\nDiscord: https://discord.gg/KJ8UaHZ",
|
"ar": "استمتع بتجربة لعب استثنائية!\nDiscord: https://discord.gg/KJ8UaHZ",
|
||||||
"en": "Have a phenomenal gaming experience\nDiscord: https://discord.gg/KJ8UaHZ!",
|
"en": "Have a phenomenal gaming experience\nDiscord: https://discord.gg/KJ8UaHZ",
|
||||||
"de": "Wünsche allen ein wunderbares Spielerlebnis!\nDiscord: https://discord.gg/KJ8UaHZ",
|
"de": "Wünsche allen ein wunderbares Spielerlebnis!\nDiscord: https://discord.gg/KJ8UaHZ",
|
||||||
"es": "¡Que disfrutes de tu experiencia de videojuegos!\nDiscord: https://discord.gg/KJ8UaHZ",
|
"es": "¡Que disfrutes de tu experiencia de videojuegos!\nDiscord: https://discord.gg/KJ8UaHZ",
|
||||||
"es-419": "¡Ten una experiencia de juego espectacular!\nDiscord: https://discord.gg/KJ8UaHZ",
|
"es-419": "¡Ten una experiencia de juego espectacular!\nDiscord: https://discord.gg/KJ8UaHZ",
|
||||||
|
|||||||
@@ -53,18 +53,32 @@ express.get("/content/api/pages/*", async (req, res) => {
|
|||||||
res.json(contentpages)
|
res.json(contentpages)
|
||||||
})
|
})
|
||||||
|
|
||||||
express.post("/api/v1/fortnite-br/surfaces/*/target", async (req, res) => {
|
express.post("/api/v1/fortnite-br/*/target", async (req, res) => {
|
||||||
const motd = JSON.parse(JSON.stringify(require("./../responses/Athena/motd.json")));
|
const motd = JSON.parse(JSON.stringify(require("./../responses/Athena/motd.json")));
|
||||||
const fields = ["title", "body", "TeaserTitle", "FullScreenTitle", "FullScreenBody"];
|
const fields = ["title", "body", "TeaserTitle", "FullScreenTitle", "FullScreenBody"];
|
||||||
|
var language = req.body.language || req.body.parameters.language;
|
||||||
|
|
||||||
try {
|
motd.contentItems.forEach(item => {
|
||||||
motd.contentItems.forEach(item => {
|
fields.forEach(field => {
|
||||||
fields.forEach(field => {
|
try {
|
||||||
item.contentFields[field] = item.contentFields[field][req.body.language];
|
item.contentFields[field] = item.contentFields[field][language];
|
||||||
})
|
} catch (err) {}
|
||||||
})
|
})
|
||||||
} catch (err) {}
|
})
|
||||||
|
|
||||||
|
if (req.body.hasOwnProperty("tags")) {
|
||||||
|
motd.contentItems.forEach(item => {
|
||||||
|
item.placements = [];
|
||||||
|
req.body.tags.forEach(tag => {
|
||||||
|
item.placements.push({
|
||||||
|
"trackingId": "lawinstrackingidlol",
|
||||||
|
"tag": tag,
|
||||||
|
"position": 0
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
res.json(motd)
|
res.json(motd)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ function getTheater(req) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (memory.build >= 30.20) { // Those changes have to be made before the 15.30+ ones
|
if (memory.build >= 30.20) { // Those changes have to be made before the 15.30+ ones
|
||||||
theater = theater.replace(/\/Game\/World\/ZoneThemes/g, "/STW_Zones/World/ZoneThemes");
|
theater = theater.replace(/\/Game\/World\/ZoneThemes/ig, "/STW_Zones/World/ZoneThemes");
|
||||||
theater = theater.replace(/\"DataTable\'\/Game\//ig, "\"/Script/Engine.DataTable\'\/Game\/");
|
theater = theater.replace(/\"DataTable\'\/Game\//ig, "\"/Script/Engine.DataTable\'\/Game\/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user