Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
加钱居士.
foot
提交
8671a338
F
foot
项目概览
加钱居士.
/
foot
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
foot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8671a338
编写于
1月 06, 2020
作者:
S
shi.zeyuan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.xx
上级
ed91b47b
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
159 addition
and
3 deletion
+159
-3
FOOT000.go
FOOT000.go
+8
-1
assets/wechat/html/stable.html
assets/wechat/html/stable.html
+75
-0
assets/wechat/html/today.html
assets/wechat/html/today.html
+1
-1
assets/wechat/html/today_tbs.html
assets/wechat/html/today_tbs.html
+1
-1
link_able.sql
link_able.sql
+42
-0
link_able_1.sql
link_able_1.sql
+32
-0
未找到文件。
FOOT000.go
浏览文件 @
8671a338
...
@@ -137,12 +137,19 @@ func main() {
...
@@ -137,12 +137,19 @@ func main() {
// }
// }
//}()
//}()
for
{
for
{
base
.
Log
.
Info
(
"--------临场比赛数据更新开始运行--------"
)
launch
.
Spider_Near
()
launch2
.
Analy_Near
()
base
.
Log
.
Info
(
"--------临场比赛数据更新周期结束--------"
)
base
.
Log
.
Info
(
"--------发布公众号开始运行--------"
)
base
.
Log
.
Info
(
"--------发布公众号开始运行--------"
)
//3.3 FW001PubApplication 执行发布到雷速
//3.3 FW001PubApplication 执行发布到雷速
materialController
:=
new
(
controller
.
MaterialController
)
materialController
:=
new
(
controller
.
MaterialController
)
materialController
.
ModifyNewsOnly
()
materialController
.
ModifyNewsOnly
()
base
.
Log
.
Info
(
"--------发布公众号周期结束--------"
)
base
.
Log
.
Info
(
"--------发布公众号周期结束--------"
)
time
.
Sleep
(
10
*
time
.
Minute
)
time
.
Sleep
(
5
*
time
.
Minute
)
}
}
default
:
default
:
...
...
assets/wechat/html/stable.html
0 → 100644
浏览文件 @
8671a338
<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>
assets/wechat/html/today.html
浏览文件 @
8671a338
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
{{end}}
{{end}}
{{else}}
{{else}}
<tr>
<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>
</tr>
{{end}}
{{end}}
</table>
</table>
...
...
assets/wechat/html/today_tbs.html
浏览文件 @
8671a338
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
{{end}}
{{end}}
{{else}}
{{else}}
<tr>
<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>
</tr>
{{end}}
{{end}}
</table>
</table>
...
...
link_able.sql
0 → 100644
浏览文件 @
8671a338
#
用于查询稳定的场次
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
link_able_1.sql
0 → 100644
浏览文件 @
8671a338
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录