修正活动WSS会话guid一致性

This commit is contained in:
yml2213
2026-09-02 18:07:31 +08:00
parent 92ba6cbc62
commit aaaa568916
9 changed files with 1490 additions and 11 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
set -eu
target=${1:-core/huya/wss_client.py}
baseline_ref=${GUID_SESSION_BASELINE_REF:-HEAD}
root=$(git rev-parse --show-toplevel)
case "$target" in
"$root"/*) file=$target; rel=${target#"$root"/} ;;
/*) file=$target; rel=core/huya/wss_client.py ;;
*) file="$root/$target"; rel=$target ;;
esac
git show "$baseline_ref:$rel" > "$file"
printf '已恢复 %s(基线 %s)\n' "$file" "$baseline_ref"