From e65bdc06db33c82057d6a19c2f765688f2db7f1b Mon Sep 17 00:00:00 2001 From: yuejiajun <1530620364@qq.com> Date: Wed, 20 Aug 2025 20:48:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2home=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/scenario/Resources/scenario.bat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/scenario/Resources/scenario.bat b/server/scenario/Resources/scenario.bat index 13fb61c..9ffdd2d 100644 --- a/server/scenario/Resources/scenario.bat +++ b/server/scenario/Resources/scenario.bat @@ -82,12 +82,15 @@ start "%SERVER_HUMP% Server" /B cmd /c "chcp 65001 && java !%SERVER_UPPER%_VM_PA echo Starting %SERVER_HUMP% Website... cd web -cd dist && mkdir temp && cd temp && cp ../wsUrl.js . + +set "tmp=tmp" +cd dist && mkdir temp && cd %tmp% && cp ../wsUrl.js . sed -i "s/6680/18680/" wsUrl.js >nul sed -i "s/6681/18280/" wsUrl.js >nul sed -i "s/6682/18880/" wsUrl.js >nul sed -i "s/6683/18480/" wsUrl.js >nul -cp wsUrl.js .. && cd .. && rm -rf temp && cd .. +cp wsUrl.js .. && cd .. && rm -rf %tmp% && cd "%~dp0/web" + taskkill -f -im %SERVER_LOWER%-web.exe >nul start "%SERVER_HUMP% Website" /B cmd /c "%SERVER_LOWER%-web.exe -c conf\web.conf"