提交 8671a338 编写于 作者: S shi.zeyuan

1.xx

上级 ed91b47b
......@@ -137,12 +137,19 @@ func main() {
// }
//}()
for {
base.Log.Info("--------临场比赛数据更新开始运行--------")
launch.Spider_Near()
launch2.Analy_Near()
base.Log.Info("--------临场比赛数据更新周期结束--------")
base.Log.Info("--------发布公众号开始运行--------")
//3.3 FW001PubApplication 执行发布到雷速
materialController := new(controller.MaterialController)
materialController.ModifyNewsOnly()
base.Log.Info("--------发布公众号周期结束--------")
time.Sleep(10 * time.Minute)
time.Sleep(5 * time.Minute)
}
default:
......
<div>
<img src="http://mmbiz.qpic.cn/sz_mmbiz_gif/BePaFicK2B5R6lNrnAdOpR63megZibx7GnwXTAl2yZTEibKIbCFrs0QpsmOWG0CrxWEicHldX2ibqva6Ise5G5vILCQ/0?wx_fmt=gif"/>
</div>
<h1 style="color: red;font-weight: bold;font-size: 12px"><strong>注意</strong></h1>
<ul style="color: red;font-weight: bold;font-size: 12px">
<li><strong>1.比赛为程序自动处理,自动更新同步,目前更新周期为60分钟一次,临场比赛(12分钟内开赛)为5分钟一次.</strong></li>
<li style="text-shadow: 0 0 7px blue"><strong>(重要)2.获取最新推荐请点击"今日推荐"菜单按钮.</strong></li>
<li><strong>3.推荐的场次为当前时间"往前推12个小时"至"往后推24小时"的场次.</strong></li>
<li style="text-shadow: 0 0 7px blue"><strong>(重要)4.推荐的场次会随指数的变化而变化(即时盘),如再次进入不见上次推荐的比赛,请查看"待选场次".</strong></li>
<li style="text-shadow: 0 0 7px blue"><strong>(重要)5.以下推荐的场次,当前己被模型认可.如后续被认可失败,则会下放到"待选场次"中.</strong></li>
<li style="text-shadow: 0 0 7px blue"><strong>(重要)6.公众号主推模型为E2,请重点关注.</strong></li>
<li><strong>7.推荐选项跟着的字母,如A1 A2 E1 E2,为算法模型标识,仅是为了方便观察不同模型的表现.</strong></li>
</ul>
<hr/>
<ul style="font-size: 12px;font-weight: lighter">
<li><strong>数据爬取时间:{{.SpiderDateStr}}</strong></li>
<li><strong>微信同步时间:{{.DataDateStr}}</strong></li>
<li><strong>日期:{{.BeginDateStr}} 至 {{.EndDateStr}}</strong></li>
</ul>
<hr/>
<h1 style="margin-top: 5px">
<div style="float: left;width: 40%"><strong>赛事列表</strong></div>
<div style="float: right;width: 40%;font-weight: bold;font-size: 12px">
模型:
<span style="color: orange">A1</span>
<span style="color: orangered">A2</span>
<span style="color: blue">E1</span>
<span style="color: darkblue">E2</span>
<span style="color: olivedrab">Q1</span>
</div>
</h1>
<table style="font-size: 12px;font-weight: bold">
<tr>
<td>模型</td>
<td>时间</td>
<td>联赛</td>
<td>主队(让球)客队</td>
<td>比分</td>
<td>推荐</td>
</tr>
{{if .DataList}}
{{with .DataList}}
{{range .}}
<tr>
<td><span style="color: {{color .AlFlag}}">{{.AlFlag}}</span></td>
<td>{{.MatchDateStr}}</td>
<td>{{.LeagueName}}</td>
<td>{{.MainTeam}}({{.LetBall}}){{.GuestTeam}}</td>
<td>
{{.MainTeamGoal}}:{{.GuestTeamGoal}}
</td>
<td
{{if eq .Result "正确"}}
style="background-color: red"
{{else if eq .Result "错误"}}
style="background-color: gray"
{{else if eq .Result "走盘"}}
style="background-color: greenyellow"
{{else}}
{{end}}
>
{{preResultStr .PreResult .AlFlag}}
</td>
</tr>
{{end}}
{{end}}
{{else}}
<tr>
<td colspan="5" style="color: red;font-weight: bold;font-size: 12px">暂时没有符合模型的比赛推荐,感谢关注~~~</td>
</tr>
{{end}}
</table>
<span style="color: red;font-weight: bold;font-size: 12px">声明:彩市有风险,购彩需谨慎.AI球探只提供预测参考,不构成购彩建议,据AI球探购彩者风险自担.</span>
......@@ -68,7 +68,7 @@
{{end}}
{{else}}
<tr>
<td colspan="5" style="color: red;font-weight: bold;font-size: 12px">暂时没有符合模型的比赛推荐,感谢关注~~~</td>
<td colspan="6" style="color: red;font-weight: bold;font-size: 12px">暂时没有符合模型的比赛推荐,感谢关注~~~</td>
</tr>
{{end}}
</table>
......
......@@ -70,7 +70,7 @@
{{end}}
{{else}}
<tr>
<td colspan="6" style="color: red;font-weight: bold;font-size: 12px">暂时没有符合模型的比赛推荐,感谢关注~~~</td>
<td colspan="7" style="color: red;font-weight: bold;font-size: 12px">暂时没有符合模型的比赛推荐,感谢关注~~~</td>
</tr>
{{end}}
</table>
......
#用于查询稳定的场次
SELECT
ar.`MatchDate`,
ar.`AlFlag`,
ar.`PreResult`,
ar.`Result`,
ar.`HitCount`,
l.Name AS LeagueName,
mh.MainTeamId AS MainTeam,
mh.GuestTeamId AS GuestTeam,
mh.MainTeamGoals AS MainTeamGoal,
mh.GuestTeamGoals AS GuestTeamGoal
FROM
foot.t_league l,
foot.t_match_his mh,
foot.t_analy_result ar,
(SELECT
ar1.`MatchId`
FROM
foot.`t_analy_result` ar1,
foot.`t_analy_result` ar2
WHERE ar1.`MatchId` = ar2.`MatchId`
AND ar1.`AlFlag` = 'Q1'
AND ar2.`AlFlag` = 'A1'
AND ar1.`MatchId` NOT IN
(SELECT
temp.matchId
FROM
foot.`t_analy_result` temp
WHERE temp.`AlFlag` IN ('E2', 'E1'))) temp
WHERE mh.LeagueId = l.Id
AND mh.Id = ar.MatchId
AND ar.`MatchId` = temp.MatchId
ORDER BY ar.MatchDate DESC,
l.id ASC,
mh.MainTeamId ASC,
ar.`AlFlag` DESC
SELECT
ar.`MatchDate`,
ar.`AlFlag`,
ar.`PreResult`,
ar.`Result`,
ar.`HitCount`,
l.Name AS LeagueName,
mh.MainTeamId AS MainTeam,
mh.GuestTeamId AS GuestTeam,
mh.MainTeamGoals AS MainTeamGoal,
mh.GuestTeamGoals AS GuestTeamGoal
FROM
foot.t_league l,
foot.t_match_his mh,
foot.t_analy_result ar,
(SELECT
ar1.`MatchId`
FROM
foot.`t_analy_result` ar1,
foot.`t_analy_result` ar2
WHERE ar1.`MatchId` = ar2.`MatchId`
AND ar1.`AlFlag` = 'Q1'
AND ar2.`AlFlag` = 'A1'
) temp
WHERE mh.LeagueId = l.Id
AND mh.Id = ar.MatchId
AND ar.`MatchId` = temp.MatchId
ORDER BY ar.MatchDate DESC,
l.id ASC,
mh.MainTeamId ASC,
ar.`AlFlag` DESC ,
ar.`PreResult` DESC
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册