start.bat
677 Bytes
@echo off
REM 收银台模块 (POS System) 启动脚本 (Windows)
REM Usage: start.bat [port]
setlocal enabledelayedexpansion
set PORT=8888
if not "%1"=="" set PORT=%1
echo ==========================================
echo 收银台模块 (POS System) 启动
echo ==========================================
echo.
echo 📁 项目路径: %cd%
echo 🔌 监听端口: %PORT%
echo.
echo 🚀 启动服务器...
echo.
REM 启动 Python HTTP 服务器
python -m http.server %PORT%
REM 如果上面命令不可用,尝试 python3
if %errorlevel% neq 0 (
echo 尝试使用 python3...
python3 -m http.server %PORT%
)
echo.
echo ⚠️ 按 Ctrl+C 停止服务器
pause