From 4d79bdcf1e3280edcedb8af966ed8d691339db1b Mon Sep 17 00:00:00 2001 From: "jay.chang" Date: Tue, 19 Mar 2024 15:35:39 +0800 Subject: [PATCH] =?UTF-8?q?[Backend]=E4=BF=AE=E6=94=B9forge=E5=8F=83?= =?UTF-8?q?=E6=95=B8=E9=8C=AF=E8=AA=A4=E5=B0=8E=E8=87=B4=E6=8A=93=E4=B8=8D?= =?UTF-8?q?=E5=88=B0token=E7=9A=84=E5=95=8F=E9=A1=8C=EF=BC=8C=E6=9B=B4?= =?UTF-8?q?=E6=96=B0demo=20urn=E5=8F=8A=E5=9C=96=E7=89=87=E7=B6=B2?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Backend/wwwroot/forgeDemo.html | 4 +++- Backend/wwwroot/index.html | 2 +- Backend/wwwroot/js/forge/ForgeViewer.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Backend/wwwroot/forgeDemo.html b/Backend/wwwroot/forgeDemo.html index 0d241a3..2a681f4 100644 --- a/Backend/wwwroot/forgeDemo.html +++ b/Backend/wwwroot/forgeDemo.html @@ -285,8 +285,10 @@ //launchViewer("dXJuOmFkc2sud2lwcHJvZDpmcy5maWxlOnZmLkxBVDNpNkI3UlVXdUY0YWNRanhjS1E_dmVyc2lvbj0x"); //2023-05 三菱 dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6em80emd1eWFsaGpybDVvODF2YTM5cGtkZ3I4MndhbXEtbWl6dWJpc2hpLyVFMyU4MCU5MCVFNSU4RiVCMCVFNSU4QyU5NyVFNCVCOCVBRCVFOCU4RiVCMSVFNSVBNCVBNyVFNiVBOCU5MyVFMyU4MCU5MUFSQyVFOSU5QiU5OSVFNiVBOCVBMSVFNSVCQyU4RitNRVAlRTYlOEIlODYlRTclQjMlQkIlRTclQjUlQjFfJUU5JTlCJUJCJUU2JUEyJUFGJUU3JUI0JUIwJUU3JUF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lOTElRTQlQkElOEMlRTUlQkIlQTArJUU0JUI4JTg5JUU1JUJCJUEwLm53ZA"); }); function move1Floor() { setElevatorSpeed(0.2); diff --git a/Backend/wwwroot/index.html b/Backend/wwwroot/index.html index f97a973..31d9697 100644 --- a/Backend/wwwroot/index.html +++ b/Backend/wwwroot/index.html @@ -27,7 +27,7 @@ diff --git a/Backend/wwwroot/js/forge/ForgeViewer.js b/Backend/wwwroot/js/forge/ForgeViewer.js index 0f68f93..2bd3deb 100644 --- a/Backend/wwwroot/js/forge/ForgeViewer.js +++ b/Backend/wwwroot/js/forge/ForgeViewer.js @@ -29,7 +29,7 @@ function onDocumentLoadFailure(viewerErrorCode) { function getForgeToken(callback) { fetch('/api/forge/oauth/token').then(res => { res.json().then(data => { - callback(data.access_token, data.expires_in); + callback(data.dictionary.access_token, data.dictionary.expires_in); }); }); } \ No newline at end of file