提交 ce244110 编写于 作者: M monomania

1.修改联赛打印不出的bug

上级 d1551a19
......@@ -120,7 +120,7 @@ func (this *SuggestMonthService) ModifyMonth(wcClient *core.Client) {
}
last := new(pojo.MatchLast)
last.Id = e.MatchId
last.LeagueId = e.LeagueName
last.LeagueId = e.LeagueId
last.MatchDate = e.MatchDate
last.MainTeamId = e.MainTeam
last.MainTeamGoals, _ = strconv.Atoi(e.MainTeamGoal)
......@@ -222,7 +222,7 @@ func (this *SuggestMonthService) ModifyGutsMonth(wcClient *core.Client) {
for _, e := range tempList {
last := new(pojo.MatchLast)
last.Id = e.MatchId
last.LeagueId = e.LeagueName
last.LeagueId = e.LeagueId
last.MatchDate = e.MatchDate
last.MainTeamId = e.MainTeam
last.MainTeamGoals, _ = strconv.Atoi(e.MainTeamGoal)
......
......@@ -120,7 +120,7 @@ func (this *SuggestWeekService) ModifyWeek(wcClient *core.Client) {
}
last := new(pojo.MatchLast)
last.Id = e.MatchId
last.LeagueId = e.LeagueName
last.LeagueId = e.LeagueId
last.MatchDate = e.MatchDate
last.MainTeamId = e.MainTeam
last.MainTeamGoals, _ = strconv.Atoi(e.MainTeamGoal)
......@@ -223,7 +223,7 @@ func (this *SuggestMonthService) ModifyGutsWeek(wcClient *core.Client) {
for _, e := range tempList {
last := new(pojo.MatchLast)
last.Id = e.MatchId
last.LeagueId = e.LeagueName
last.LeagueId = e.LeagueId
last.MatchDate = e.MatchDate
last.MainTeamId = e.MainTeam
last.MainTeamGoals, _ = strconv.Atoi(e.MainTeamGoal)
......
......@@ -96,11 +96,11 @@ func (this *MatchLastProcesser) Process(p *page.Page) {
base.Log.Info("日期:TODAY", "比赛信息:", match_str)
this.match_process(match_str)
now := time.Now()
//now := time.Now()
//获取明天赛程
h24h, _ := time.ParseDuration("24h")
t_1_date := now.Add(h24h).Format("2006-01-02")
this.futrueMatch(t_1_date)
//h24h, _ := time.ParseDuration("24h")
//t_1_date := now.Add(h24h).Format("2006-01-02")
//this.futrueMatch(t_1_date)
//获取后天赛程
//h24h, _ = time.ParseDuration("48h")
//t_1_date = now.Add(h24h).Format("2006-01-02")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册