fix(portable): 微信扫码重定向/Telegram botToken/Windows 启动端口 (v2.1.11)
- 微信扫码卡死: config-server 跟随 IDC scaned_but_redirect 把后续轮询切到 redirect_host,刷新二维码时重置 pollBaseUrl(扫码后不再卡住等不到 confirmed)。新增测试。 - Telegram 渠道改用 botToken(顶层 telegram 只认 botToken,旧 token 别名被静默忽略 → 连不上)。 - Windows-Start: 先起 config-server 再探测 gateway 端口,从 runtime.json 读实际 configServerPort 并按该端口开 Config Center / 传给 wait-gateway(18788 被占也能开)。 - wait-gateway.bat: 用 ping 代替 timeout /t(避开 PATH 上 GNU coreutils timeout 冲突),接受 CONFIG_PORT 参数。 - Windows-Menu: IF 块内 echo 的 () 转义为 ^(^),修 v2.1.10 闪退回归。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -477,12 +477,12 @@ echo Fetching latest version...
|
||||
for /f "tokens=*" %%v in ('"%NODE_BIN%" -e "const https=require('https');https.get('https://registry.npmmirror.com/openclaw/latest',r=>{let d='';r.on('data',c=>d+=c);r.on('end',()=>{try{console.log(JSON.parse(d).version)}catch(e){console.log('error')}})})" 2^>nul') do set LATEST_VER=%%v
|
||||
|
||||
if "!LATEST_VER!"=="" (
|
||||
echo Could not fetch latest version (network issue?)
|
||||
echo Could not fetch latest version ^(network issue?^)
|
||||
pause
|
||||
goto :menu
|
||||
)
|
||||
if "!LATEST_VER!"=="error" (
|
||||
echo Could not fetch latest version (network issue?)
|
||||
echo Could not fetch latest version ^(network issue?^)
|
||||
pause
|
||||
goto :menu
|
||||
)
|
||||
@@ -550,7 +550,7 @@ if !BK_COUNT! gtr 3 (
|
||||
echo Cleaned !DEL_NUM! old backups.
|
||||
)
|
||||
) else (
|
||||
echo Backups: !BK_COUNT! (no cleanup needed)
|
||||
echo Backups: !BK_COUNT! ^(no cleanup needed^)
|
||||
)
|
||||
|
||||
REM Clean old logs (>7 days)
|
||||
@@ -598,7 +598,7 @@ if "%plgchoice%"=="b" (
|
||||
echo.
|
||||
echo Common plugins:
|
||||
echo @icesword760/openclaw-wechat - WeChat
|
||||
echo @nicepkg/openclaw-plugin-qq - QQ (community)
|
||||
echo @nicepkg/openclaw-plugin-qq - QQ ^(community^)
|
||||
echo.
|
||||
set /p plgname=" Plugin name (empty to cancel): "
|
||||
if not "!plgname!"=="" (
|
||||
|
||||
Reference in New Issue
Block a user