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:
2
.env
2
.env
@@ -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
1
.gitignore
vendored
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user