fix: push_users表 + cookie_uid列 + __uid正则修复 + deploy.sh重写
This commit is contained in:
@@ -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 '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user