fix(财务台账): 调整招商银行邮件抓取时间
This commit is contained in:
parent
f0bee2dc22
commit
e5bfe11f22
@ -9,8 +9,8 @@
|
||||
- 默认处理前一天的交易明细。
|
||||
- 邮箱必须开启 IMAP,配置复用
|
||||
`runtime/private/wangshang-mail-accounts.json` 中的邮箱连接信息。
|
||||
- 招商银行下载链接有效期 12 小时,生产任务在 02:10、03:10、04:10、05:10
|
||||
重试;相同 ZIP 指纹只导入一次。
|
||||
- 招商银行下载链接有效期 12 小时,生产任务每天 07:00 执行,失败后
|
||||
10 分钟自动重试一次;相同 ZIP 指纹只导入一次。
|
||||
- ZIP 只接收 XLSX、XLS、CSV,每次解压前校验文件数量、总大小和路径安全。
|
||||
- 导入按银行流水指纹幂等更新,重复下载不会产生重复流水。
|
||||
|
||||
|
||||
@ -70,7 +70,7 @@ cat > /etc/cron.d/caiwu-cmb-mail <<'CRON'
|
||||
CRON_TZ=Asia/Shanghai
|
||||
SHELL=/bin/sh
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
10 2,3,4,5 * * * root /usr/bin/flock -n /run/caiwu-cmb-mail.lock /bin/sh /opt/caiwuxitong/runtime/private/cmb-mail/run-server.sh >> /opt/caiwuxitong/runtime/private/cmb-mail/cron.log 2>&1
|
||||
0 7 * * * root /usr/bin/flock -n /run/caiwu-cmb-mail.lock /bin/sh -c '/bin/sh /opt/caiwuxitong/runtime/private/cmb-mail/run-server.sh || { sleep 600; /bin/sh /opt/caiwuxitong/runtime/private/cmb-mail/run-server.sh; }' >> /opt/caiwuxitong/runtime/private/cmb-mail/cron.log 2>&1
|
||||
CRON
|
||||
chmod 644 /etc/cron.d/caiwu-cmb-mail
|
||||
'@
|
||||
@ -93,4 +93,4 @@ chmod 644 /etc/cron.d/caiwu-cmb-mail
|
||||
Stop-CaiwuDeploymentAuth $auth
|
||||
}
|
||||
|
||||
Write-Host "招商银行邮件账单任务已安装。每天 02:10、03:10、04:10、05:10 自动重试。"
|
||||
Write-Host "招商银行邮件账单任务已安装。每天 07:00 执行,失败后 10 分钟自动重试一次。"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user