From e1931cdee60df498fa0afced0214599dc30f6980 Mon Sep 17 00:00:00 2001 From: admin <362324317@qq.com> Date: Sun, 17 May 2026 16:01:50 +0800 Subject: [PATCH] =?UTF-8?q?v0.3.15:=20SELECT=E8=A1=A5=E5=85=A8cloud=5Ftype?= =?UTF-8?q?=5Fuid=E5=92=8Cpromotion=5Faccount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- source_clean/VERSION | 2 +- source_clean/src/cloud/credential.service.ts | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/VERSION b/VERSION index 0b69c00..9e29e10 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.14 +0.3.15 diff --git a/source_clean/VERSION b/source_clean/VERSION index 0b69c00..9e29e10 100644 --- a/source_clean/VERSION +++ b/source_clean/VERSION @@ -1 +1 @@ -0.3.14 +0.3.15 diff --git a/source_clean/src/cloud/credential.service.ts b/source_clean/src/cloud/credential.service.ts index 339d2ce..5f2b71d 100644 --- a/source_clean/src/cloud/credential.service.ts +++ b/source_clean/src/cloud/credential.service.ts @@ -43,7 +43,7 @@ function extractCookieUid(cookie: string): string { export function getCloudConfigs(): CloudConfig[] { const db = getDb(); const rows = db.prepare( - `SELECT id, cloud_type, cookie, nickname, is_active, cookie_uid, storage_used, storage_total, + `SELECT id, cloud_type, cookie, nickname, is_active, cloud_type_uid, cookie_uid, promotion_account, storage_used, storage_total, checkin_status, last_checkin_at, checkin_message, consecutive_failures, last_used_at, total_saves, created_at, updated_at, verification_status FROM cloud_configs ORDER BY id ASC` @@ -55,7 +55,7 @@ export function getCloudConfigs(): CloudConfig[] { export function getAvailableClouds(): CloudConfig[] { const db = getDb(); const rows = db.prepare( - `SELECT id, cloud_type, nickname, is_active, cookie_uid, storage_used, storage_total, + `SELECT id, cloud_type, nickname, is_active, cloud_type_uid, cookie_uid, promotion_account, storage_used, storage_total, checkin_status, last_checkin_at, checkin_message, consecutive_failures, last_used_at, total_saves, created_at, updated_at FROM cloud_configs WHERE is_active = 1 ORDER BY id ASC` @@ -68,7 +68,7 @@ export function getAvailableClouds(): CloudConfig[] { export function getCloudConfigByType(cloudType: string): CloudConfig | undefined { const db = getDb(); const cfg = db.prepare( - `SELECT id, cloud_type, cookie, nickname, is_active, cookie_uid, storage_used, storage_total, + `SELECT id, cloud_type, cookie, nickname, is_active, cloud_type_uid, cookie_uid, promotion_account, storage_used, storage_total, checkin_status, last_checkin_at, checkin_message, consecutive_failures, last_used_at, total_saves, created_at, updated_at, verification_status FROM cloud_configs WHERE cloud_type = ? AND is_active = 1 @@ -81,7 +81,7 @@ export function getCloudConfigByType(cloudType: string): CloudConfig | undefined export function getCloudConfigById(id: number): CloudConfig | undefined { const db = getDb(); const cfg = db.prepare( - `SELECT id, cloud_type, cookie, nickname, is_active, cookie_uid, storage_used, storage_total, + `SELECT id, cloud_type, cookie, nickname, is_active, cloud_type_uid, cookie_uid, promotion_account, storage_used, storage_total, checkin_status, last_checkin_at, checkin_message, consecutive_failures, last_used_at, total_saves, created_at, updated_at, verification_status FROM cloud_configs WHERE id = ?` @@ -94,7 +94,7 @@ export function getCloudConfigById(id: number): CloudConfig | undefined { export function getActiveCloudConfigs(): CloudConfig[] { const db = getDb(); const rows = db.prepare( - `SELECT id, cloud_type, cookie, nickname, is_active, cookie_uid, storage_used, storage_total, + `SELECT id, cloud_type, cookie, nickname, is_active, cloud_type_uid, cookie_uid, promotion_account, storage_used, storage_total, checkin_status, last_checkin_at, checkin_message, consecutive_failures, last_used_at, total_saves, created_at, updated_at FROM cloud_configs WHERE is_active = 1 @@ -162,7 +162,7 @@ export function saveCloudConfig(data: { const savedId = data.id || (db.prepare('SELECT last_insert_rowid() as id').get() as any).id; return db.prepare( - `SELECT id, cloud_type, cookie, nickname, is_active, cookie_uid, storage_used, storage_total, + `SELECT id, cloud_type, cookie, nickname, is_active, cloud_type_uid, cookie_uid, promotion_account, storage_used, storage_total, checkin_status, last_checkin_at, checkin_message, consecutive_failures, last_used_at, total_saves, created_at, updated_at FROM cloud_configs WHERE id = ?`