Skip to content

Commit

Permalink
每天同步
Browse files Browse the repository at this point in the history
  • Loading branch information
axiaoxin committed Jul 14, 2021
1 parent 5f3fec1 commit 25d6233
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cron/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ func RunCronJobs(async bool) {
panic(err)
}
sched := gocron.NewScheduler(timezone)
// 每周五18点同步基金净值列表和4433列表
sched.Cron("0 18 * * 5").Do(SyncFund)
// 每月1号凌晨4点同步东方财富行业列表
// 同步基金净值列表和4433列表
sched.Cron("0 18 * * *").Do(SyncFund)
// 同步东方财富行业列表
sched.Cron("0 4 1 * *").Do(SyncIndustryList)
if async {
sched.StartAsync()
Expand Down
3 changes: 1 addition & 2 deletions statics/html/fund_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ <h4>4433法则</h4>
<h4 class="center"><span onclick="$('#desc_4433').tapTarget('open')">4433<i class="tiny material-icons">help_outline</i></span>基金列表</h4>
<div class="divider"></div>
<div class="left">
更新时间:每周五18:00</br>
上次更新:{{ .UpdatedAt }}</br>
更新时间:{{ .UpdatedAt }}</br>
4433总数:{{ .Fund4433Count }}/筛选总数:{{ .AllFundCount }}
</div>
{{ template "fundtable" . }}
Expand Down

0 comments on commit 25d6233

Please sign in to comment.