Browse Source

update

master
dengbiao 2 days ago
parent
commit
05ebbfaabf
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      app/task/init.go
  2. +2
    -2
      app/task/md/cron_key.go

+ 1
- 1
app/task/init.go View File

@@ -43,7 +43,7 @@ func Run() {
func reload() {
cronTaskDb := implement.NewCronTaskDb(db.Db)
taskCfgList = cronTaskDb.MapCrontabCfg()
fmt.Println("taskCfgList>>>>>>>>>>>>>", taskCfgList)
if len(*taskCfgList) > 0 {
// 删除原有所有任务
if len(entryIds) > 0 {


+ 2
- 2
app/task/md/cron_key.go View File

@@ -10,6 +10,6 @@ const (
CornEggEnergyDealUserPublicPlatoonPunish = "cron_egg_energy_deal_user_public_platoon_punish" // 公排处罚
CornEggEnergyAutoAdjustPrice = "cron_egg_energy_auto_adjust_price" // 自动调整价格
CornEggEnergyAutoCommunityDividends = "cron_egg_energy_community_dividends" // 社区分红
CornEggEnergyAutomaticScoring = "corn_egg_energy_automatic_score" // 自动打分
CornEggEnergyAutoCachingEggPointStatistics = "corn_egg_energy_auto_caching_egg_point_statistics" // 缓存蛋蛋分统计落地页 // 自动打分
CornEggEnergyAutomaticScoring = "cron_egg_energy_automatic_score" // 自动打分
CornEggEnergyAutoCachingEggPointStatistics = "cron_egg_energy_auto_caching_egg_point_statistics" // 缓存蛋蛋分统计落地页
)

Loading…
Cancel
Save