1 Commits

5 changed files with 13 additions and 4 deletions

View File

@@ -1 +1 @@
0.4.9
0.4.10

View File

@@ -1 +1 @@
0.4.9
0.4.10

Binary file not shown.

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 '';
}

View File

@@ -40,6 +40,7 @@ function runMigrations(db: Database.Database): void {
cloud_type TEXT NOT NULL,
cookie TEXT,
cloud_type_uid TEXT DEFAULT NULL,
cookie_uid TEXT DEFAULT NULL,
nickname TEXT,
is_active INTEGER NOT NULL DEFAULT 1,
storage_used TEXT,
@@ -108,6 +109,13 @@ function runMigrations(db: Database.Database): void {
value TEXT NOT NULL DEFAULT '',
description TEXT,
updated_at TEXT NOT NULL DEFAULT (datetime('now', 'localtime'))
CREATE TABLE IF NOT EXISTS push_users (
id INTEGER PRIMARY KEY AUTOINCREMENT,
account TEXT NOT NULL UNIQUE,
notify_config TEXT,
created_at TEXT NOT NULL DEFAULT (datetime('now','localtime')),
updated_at TEXT NOT NULL DEFAULT (datetime('now','localtime'))
);
);
CREATE TABLE IF NOT EXISTS content_cache (
@@ -209,6 +217,7 @@ function migrateCloudConfigs(db: Database.Database): void {
cookie TEXT,
cloud_type_uid TEXT DEFAULT NULL,
nickname TEXT,
cookie_uid TEXT DEFAULT NULL,
is_active INTEGER NOT NULL DEFAULT 1,
storage_used TEXT,
storage_total TEXT,