chore(env): update log level to debug and modify .gitignore

- Change log level from 'info' to 'debug' for enhanced logging during development.
- Add '.cursor' to .gitignore to prevent tracking of cursor files.
This commit is contained in:
dmy
2026-01-15 23:48:07 +08:00
parent 9dc01eeb46
commit e8beeec2b9
3 changed files with 5 additions and 4 deletions

2
.env
View File

@@ -37,7 +37,7 @@ PROXY_HOST=127.0.0.1
PROXY_PORT=3211 PROXY_PORT=3211
# 日志级别可选error, warn, info, debug, verbose # 日志级别可选error, warn, info, debug, verbose
LOG_LEVEL=info LOG_LEVEL=debug
# OpenAI API Key (用于 AI 推荐) # OpenAI API Key (用于 AI 推荐)
ARK_API_KEY=a63d58b6-cf56-434b-8a42-5c781ba0822a ARK_API_KEY=a63d58b6-cf56-434b-8a42-5c781ba0822a

1
.gitignore vendored
View File

@@ -14,3 +14,4 @@ build
widget/looker/frontend/src/assets/fonts/OFL.txt widget/looker/frontend/src/assets/fonts/OFL.txt
dist-electron dist-electron
unpackage unpackage
.cursor

View File

@@ -164,7 +164,7 @@ export class BidsService {
count, count,
latestPublishDate, latestPublishDate,
error, error,
createdAt as latestUpdate strftime('%Y-%m-%d %H:%M:%S', createdAt, '+8 hours') as latestUpdate
FROM crawl_info_add FROM crawl_info_add
WHERE (source, createdAt) IN ( WHERE (source, createdAt) IN (
SELECT source, MAX(createdAt) SELECT source, MAX(createdAt)
@@ -180,7 +180,7 @@ export class BidsService {
return results.map((item) => ({ return results.map((item) => ({
source: String(item.source), source: String(item.source),
count: Number(item.count), count: Number(item.count),
latestUpdate: item.latestUpdate ? item.latestUpdate + 'Z' : null, latestUpdate: item.latestUpdate,
latestPublishDate: item.latestPublishDate, latestPublishDate: item.latestPublishDate,
// 确保 error 字段正确处理null 或空字符串都转换为 null非空字符串保留 // 确保 error 字段正确处理null 或空字符串都转换为 null非空字符串保留
error: error: