From 114dc5a381f04cc77218dfb44ba89ddc91cc3280 Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 27 Mar 2025 11:14:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E7=9C=8B=E6=9D=BF=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=EF=BC=8C=E6=96=B9=E4=BE=BF=E7=8B=AC=E7=AB=8B?= =?UTF-8?q?=E7=BB=B4=E6=8A=A4=E5=8A=9F=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/dashboard_start.bat | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/admin/dashboard_start.bat b/admin/dashboard_start.bat index 0faa2e2..b7b1dce 100644 --- a/admin/dashboard_start.bat +++ b/admin/dashboard_start.bat @@ -2,6 +2,16 @@ cd /d %~dp0 echo 正在启动WeChatRobot管理后台... +echo [INFO] 尝试从Git更新代码... +cd /d F:\python\WeChatRobot +git pull +if %errorlevel% neq 0 ( + echo [WARNING] Git更新失败,继续使用当前代码... +) else ( + echo [INFO] 代码更新成功! +) + +cd /d %~dp0 echo [INFO] 正在安装Python依赖... pip install -r requirements.txt