contentSecurity/run.bat
2025-10-16 16:18:55 +08:00

33 lines
505 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 >nul
echo === 阿里云内容安全2.0 Demo ===
echo.
REM 检查Go是否安装
go version >nul 2>&1
if errorlevel 1 (
echo ❌ 错误: 未找到Go请先安装Go 1.21或更高版本
pause
exit /b 1
)
echo ✅ Go环境检查通过
echo.
REM 下载依赖
echo 正在下载依赖...
go mod tidy
if errorlevel 1 (
echo ❌ 依赖下载失败
pause
exit /b 1
)
echo ✅ 依赖下载完成
echo.
REM 运行程序
echo 启动程序...
go run cmd/main.go
pause