From 826344eea18d276dc3d1485b2890741fa132d2a0 Mon Sep 17 00:00:00 2001 From: locphamtran Date: Tue, 9 Jun 2026 08:45:39 +0700 Subject: [PATCH] =?UTF-8?q?S=E1=BB=ADa=20l=E1=BB=97i=20t=E1=BA=A1o=20li?= =?UTF-8?q?=C3=AAn=20=20k=E1=BA=BFt=20chia=20s=E1=BA=BB=20c=E1=BB=A7a=20ng?= =?UTF-8?q?=C6=B0=E1=BB=9Di=20d=C3=B9ng?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/routes/apiRoutes.js | 11 +++++++---- frontend/index.html | 3 +++ frontend/js/main_map.js | 9 ++++++++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/backend/routes/apiRoutes.js b/backend/routes/apiRoutes.js index 0e01e7c..c4a16e1 100644 --- a/backend/routes/apiRoutes.js +++ b/backend/routes/apiRoutes.js @@ -254,7 +254,8 @@ router.get('/share/:sceneId', optionalAuth, async (req, res) => { const host = req.get('host'); const siteUrl = `${protocol}://${host}`; const assetId = scene.assetId?._id || scene.assetId; - const thumbUrl = `${siteUrl}/api/assets/view/${assetId}${req.query.token ? '?token=' + req.query.token : ''}`; + // Thêm tham số watermark=true để ép hệ thống vẽ thêm icon cho mạng xã hội + const thumbUrl = `${siteUrl}/api/assets/view/${assetId}?watermark=true${req.query.token ? '&token=' + req.query.token : ''}`; // Trả về HTML chứa Meta Tags và Script chuyển hướng const html = ` @@ -266,14 +267,16 @@ router.get('/share/:sceneId', optionalAuth, async (req, res) => { - + + + + - - +