[patch] PDD登录状态GUI回调优化
This commit is contained in:
@@ -9,26 +9,31 @@ jobs:
|
||||
runs-on: windows
|
||||
|
||||
steps:
|
||||
# Step 1: Checkout repository (使用 Gitea 自动检出,适配所有路径)
|
||||
# Step 1: Gitea 原生检出(不依赖 GitHub)
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.ref_name }} # 动态分支(master 或 develop)
|
||||
fetch-depth: 0 # 获取完整历史(用于版本号计算)
|
||||
|
||||
# Step 1.5: Verify checkout
|
||||
- name: Verify checkout
|
||||
shell: powershell
|
||||
run: |
|
||||
Write-Host "=========================================="
|
||||
Write-Host "Repository Information"
|
||||
Write-Host "开始检出代码"
|
||||
Write-Host "=========================================="
|
||||
Write-Host "Current directory: $(Get-Location)"
|
||||
Write-Host "Branch: ${{ github.ref_name }}"
|
||||
Write-Host "Commit: ${{ github.sha }}"
|
||||
Write-Host "Author: ${{ github.actor }}"
|
||||
Write-Host "当前目录: $(Get-Location)"
|
||||
Write-Host "分支: ${{ github.ref_name }}"
|
||||
Write-Host "提交: ${{ github.sha }}"
|
||||
Write-Host "作者: ${{ github.actor }}"
|
||||
Write-Host ""
|
||||
Write-Host "Git status:"
|
||||
|
||||
# Git 配置
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.longpaths true
|
||||
|
||||
# 拉取最新代码
|
||||
Write-Host "拉取最新代码..."
|
||||
git fetch origin
|
||||
git checkout ${{ github.ref_name }}
|
||||
git pull origin ${{ github.ref_name }}
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "Git 状态:"
|
||||
git status
|
||||
Write-Host "=========================================="
|
||||
|
||||
|
||||
@@ -645,7 +645,7 @@ _websocket_manager = None
|
||||
|
||||
|
||||
def get_websocket_manager() -> WebSocketManager:
|
||||
"""获取全局WebSocket管理器实例1"""
|
||||
"""获取全局WebSocket管理器实例"""
|
||||
global _websocket_manager
|
||||
if _websocket_manager is None:
|
||||
_websocket_manager = WebSocketManager()
|
||||
|
||||
Reference in New Issue
Block a user