diff --git a/src/store/modules/dialogueList.js b/src/store/modules/dialogueList.js index b6e1c87..d83b4af 100644 --- a/src/store/modules/dialogueList.js +++ b/src/store/modules/dialogueList.js @@ -49,7 +49,7 @@ export const useDialogueListStore = createGlobalState(() => { eventType: 'executeSql', eventParams: { name: 'chat', - sql: `INSERT INTO talk_records (msg_id, sequence, talk_type, msg_type, user_id, receiver_id, is_revoke, is_mark, quote_id, extra, created_at, updated_at, biz_date) VALUES ('77b715fb30f54f739a255a915ef72445', 166, 2, 1, 1774, 888890, 0, 0, '', '${extra}', '2025-03-06T15:57:07.000Z', '2025-03-06T15:57:07.000Z', '20250306')`, + sql: 'INSERT INTO talk_records (msg_id, sequence, talk_type, msg_type, user_id, receiver_id, is_revoke, is_mark, quote_id, extra, created_at, updated_at, biz_date) VALUES ("'+'77b715fb30f54f739a255a915ef72445'+'", 166, 2, 1, 1774, 888890, 0, 0, "'+''+'", "'+'extra'+'", "'+'2025-03-06T15:57:07.000Z'+'", "'+'2025-03-06T15:57:07.000Z'+'", "'+'20250306'+'")', }, } let chatDBSelectSql = { @@ -63,7 +63,7 @@ export const useDialogueListStore = createGlobalState(() => { eventType: 'selectSql', eventParams: { name: 'chat', - sql: `SELECT name FROM sqlite_master WHERE type='table' AND name='talk_records'`, + sql: 'SELECT name FROM sqlite_master WHERE type="'+'table'+'" AND name="'+'talk_records'+'"' }, } document.addEventListener('plusready', () => { @@ -80,20 +80,16 @@ export const useDialogueListStore = createGlobalState(() => { JSON.stringify(chatDBexecuteSql), )}')`, ) - console.error(JSON.stringify(chatDBexecuteSql2), 'chatDBexecuteSql2') - console.error(encodeURIComponent( - JSON.stringify(chatDBexecuteSql2), - ), 'chatDBexecuteSql2') - webview.evalJS( - `operateSQLite('${encodeURIComponent( - JSON.stringify(chatDBexecuteSql2), - )}')`, - ) // webview.evalJS( // `operateSQLite('${encodeURIComponent( - // JSON.stringify(chatDBSelectSql), + // JSON.stringify(chatDBexecuteSql2), // )}')`, // ) + webview.evalJS( + `operateSQLite('${encodeURIComponent( + JSON.stringify(chatDBSelectSql), + )}')`, + ) webview.evalJS( `operateSQLite('${encodeURIComponent( JSON.stringify(chatDBSelectSql2),