diff --git a/apps/api/prisma/seed.ts b/apps/api/prisma/seed.ts index 684b8a9..8d77010 100644 --- a/apps/api/prisma/seed.ts +++ b/apps/api/prisma/seed.ts @@ -120,8 +120,8 @@ async function main() { await prisma.crawlerConfig.deleteMany() await prisma.crawlerConfig.createMany({ data: [ - { name: '中国电建阳光采购网', targetUrl: 'https://bid.powerchina.cn', type: 'bid_powerchina', sourceName: '中电建', status: 'active', schedule: '0 8 * * *', totalRuns: 286, successRuns: 275, failedRuns: 11, keywords: '["电缆","防火门","配电箱","钢材"]' }, - { name: '新矿集团供应链平台', targetUrl: 'https://xkgroup.kdcloud.com', type: 'bid_xkgroup', sourceName: '新矿集团', scriptPath: 'fetch-xkgroup.py', status: 'active', schedule: '5 8 * * *', totalRuns: 142, successRuns: 138, failedRuns: 4, keywords: '["电缆","钢材","阀门","管材"]' }, + { name: '中国电建阳光采购网', targetUrl: 'https://bid.powerchina.cn', type: 'bid_powerchina', sourceName: '中电建', status: 'active', schedule: '0 0 8 * * *', totalRuns: 286, successRuns: 275, failedRuns: 11, keywords: '["电缆","防火门","配电箱","钢材"]' }, + { name: '新矿集团供应链平台', targetUrl: 'https://xkgroup.kdcloud.com', type: 'bid_xkgroup', sourceName: '新矿集团', scriptPath: 'fetch-xkgroup.py', status: 'active', schedule: '0 5 8 * * *', totalRuns: 142, successRuns: 138, failedRuns: 4, keywords: '["电缆","钢材","阀门","管材"]' }, { name: '中核集团电子采购平台', targetUrl: 'https://www.cnncecp.com', type: 'bid_cnncecp', sourceName: '中核集团', scriptPath: 'fetch-cnncecp.py', status: 'paused', totalRuns: 0, successRuns: 0, failedRuns: 0, keywords: '["电缆","防火门","钢材","阀门"]' }, ], }) diff --git a/apps/web/src/components/RuleCenterPage.tsx b/apps/web/src/components/RuleCenterPage.tsx index 21e3f66..29b62fc 100644 --- a/apps/web/src/components/RuleCenterPage.tsx +++ b/apps/web/src/components/RuleCenterPage.tsx @@ -122,9 +122,9 @@ const TYPE_OPTIONS = [ { value: 'bid_cnncecp', label: '中核集团招采' }, ] const CRON_PRESETS = [ - { label: '每 6 个小时', value: '0 */6 * * *' }, - { label: '每天早 8 点', value: '0 8 * * *' }, - { label: '每天晚 7 点', value: '0 19 * * *' }, + { label: '每 6 个小时', value: '0 0 */6 * * *' }, + { label: '每天早 8 点', value: '0 0 8 * * *' }, + { label: '每天晚 7 点', value: '0 0 19 * * *' }, { label: '手动(不自动执行)', value: '' }, ]