基线:全量源码首提(D1 版本控制落地,含第一轮优化 B1-B4/A1/A4/缩放修复)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
@echo off
|
||||
rem 会员服务器启动脚本(双击运行) - GBK 编码,勿加 chcp
|
||||
setlocal
|
||||
set "DIR=%~dp0"
|
||||
set "NODEEXE="
|
||||
if exist "%DIR%node\node.exe" set "NODEEXE=%DIR%node\node.exe"
|
||||
if not defined NODEEXE if exist "%DIR%..\cadbt\node\node.exe" set "NODEEXE=%DIR%..\cadbt\node\node.exe"
|
||||
if not defined NODEEXE if exist "%DIR%..\cadbt\cadbt\bin\Debug\node\node.exe" set "NODEEXE=%DIR%..\cadbt\cadbt\bin\Debug\node\node.exe"
|
||||
if not defined NODEEXE (
|
||||
echo [错误] 未找到 node.exe,请确认 node 目录存在。
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
powershell -NoProfile -Command "try{$c=New-Object Net.Sockets.TcpClient;$r=$c.BeginConnect('127.0.0.1',12701,$null,$null);if($r.AsyncWaitHandle.WaitOne(500)){$c.EndConnect($r);exit 0}}catch{};exit 1" >nul 2>nul
|
||||
if %errorlevel%==0 (
|
||||
echo [提示] 会员服务已在运行: http://127.0.0.1:12701
|
||||
start "" "http://127.0.0.1:12701/"
|
||||
pause
|
||||
exit /b 0
|
||||
)
|
||||
|
||||
echo [启动] 会员服务器 http://127.0.0.1:12701 数据文件: %DIR%huiyuan.json
|
||||
start "" "http://127.0.0.1:12701/"
|
||||
"%NODEEXE%" "%DIR%server.cjs"
|
||||
pause
|
||||
Reference in New Issue
Block a user