From e8beeec2b937e4a0d282602eaa052caa0a3d550f Mon Sep 17 00:00:00 2001 From: dmy Date: Thu, 15 Jan 2026 23:48:07 +0800 Subject: [PATCH] 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. --- .env | 2 +- .gitignore | 3 ++- src/bids/services/bid.service.ts | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.env b/.env index 2224d19..62b520f 100644 --- a/.env +++ b/.env @@ -37,7 +37,7 @@ PROXY_HOST=127.0.0.1 PROXY_PORT=3211 # 日志级别(可选):error, warn, info, debug, verbose -LOG_LEVEL=info +LOG_LEVEL=debug # OpenAI API Key (用于 AI 推荐) ARK_API_KEY=a63d58b6-cf56-434b-8a42-5c781ba0822a diff --git a/.gitignore b/.gitignore index 76e6b03..331e848 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,5 @@ build *.woff2 widget/looker/frontend/src/assets/fonts/OFL.txt dist-electron -unpackage \ No newline at end of file +unpackage +.cursor diff --git a/src/bids/services/bid.service.ts b/src/bids/services/bid.service.ts index b32e7cc..0887e9a 100644 --- a/src/bids/services/bid.service.ts +++ b/src/bids/services/bid.service.ts @@ -164,7 +164,7 @@ export class BidsService { count, latestPublishDate, error, - createdAt as latestUpdate + strftime('%Y-%m-%d %H:%M:%S', createdAt, '+8 hours') as latestUpdate FROM crawl_info_add WHERE (source, createdAt) IN ( SELECT source, MAX(createdAt) @@ -180,7 +180,7 @@ export class BidsService { return results.map((item) => ({ source: String(item.source), count: Number(item.count), - latestUpdate: item.latestUpdate ? item.latestUpdate + 'Z' : null, + latestUpdate: item.latestUpdate, latestPublishDate: item.latestPublishDate, // 确保 error 字段正确处理:null 或空字符串都转换为 null,非空字符串保留 error: