fix: push_users表 + cookie_uid列 + __uid正则修复 + deploy.sh重写

This commit is contained in:
2026-05-19 05:06:17 +08:00
parent c9067179ff
commit 9ef58b5724
5 changed files with 13 additions and 4 deletions

View File

@@ -35,9 +35,9 @@ function decryptCookie(encrypted: string): string {
function extractCookieUid(cookie: string): string {
if (!cookie) return '';
let m = cookie.match(/__uid=([a-zA-Z0-9+/=_-]+)/);
let m = cookie.match(/__uid=([^;]+)/);
if (m) return m[1];
m = cookie.match(/b-user-id=([a-zA-Z0-9-]+)/);
m = cookie.match(/b-user-id=([^;]+)/);
if (m) return m[1];
return '';
}