Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
加钱居士.
foot
提交
fe4f7769
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,发现更多精彩内容 >>
提交
fe4f7769
编写于
1月 05, 2020
作者:
M
monomania
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.xxx增加显示数据抓取时间 2.比赛结果更新时间调整为128分钟
上级
061f1763
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
59 addition
and
40 deletion
+59
-40
assets/wechat/html/month.html
assets/wechat/html/month.html
+6
-3
assets/wechat/html/today.html
assets/wechat/html/today.html
+7
-7
assets/wechat/html/today_detail.html
assets/wechat/html/today_detail.html
+3
-6
assets/wechat/html/today_tbs.html
assets/wechat/html/today_tbs.html
+10
-11
assets/wechat/html/week.html
assets/wechat/html/week.html
+5
-6
foot-api/module/suggest/vo/MonthVO.go
foot-api/module/suggest/vo/MonthVO.go
+2
-0
foot-api/module/suggest/vo/TodayVO.go
foot-api/module/suggest/vo/TodayVO.go
+1
-0
foot-api/module/suggest/vo/WeekVO.go
foot-api/module/suggest/vo/WeekVO.go
+1
-0
foot-core/module/analy/service/AnalyService.go
foot-core/module/analy/service/AnalyService.go
+1
-1
foot-core/module/analy/service/E2Service.go
foot-core/module/analy/service/E2Service.go
+1
-1
foot-core/module/spider/constants/Constant.go
foot-core/module/spider/constants/Constant.go
+5
-0
foot-core/module/suggest/service/SuggestService.go
foot-core/module/suggest/service/SuggestService.go
+4
-4
foot-core/module/wechat/service/SuggestMonthService.go
foot-core/module/wechat/service/SuggestMonthService.go
+3
-1
foot-core/module/wechat/service/SuggestTodayService.go
foot-core/module/wechat/service/SuggestTodayService.go
+4
-0
foot-core/module/wechat/service/SuggestWeekService.go
foot-core/module/wechat/service/SuggestWeekService.go
+2
-0
foot-spider/launch/FS101PortalApplication.go
foot-spider/launch/FS101PortalApplication.go
+4
-0
未找到文件。
assets/wechat/html/month.html
浏览文件 @
fe4f7769
...
...
@@ -25,15 +25,17 @@
</h1>
<table
style=
"font-size: 12px;font-weight: bold"
>
<tr>
<td>
模型
</td>
<td>
时间
</td>
<td>
联赛
</td>
<td>
主队(让球)客队
</td>
<td>
比分
</td>
<td>
推荐
(模型)
</td>
<td>
推荐
</td>
</tr>
{{with .DataList}}
{{range .}}
<tr>
<td><span
style=
"color: {{color .AlFlag}}"
>
{{.AlFlag}}
</span></td>
<td>
{{.MatchDateStr}}
</td>
<td>
{{.LeagueName}}
</td>
<td>
{{.MainTeam}}({{.LetBall}}){{.GuestTeam}}
</td>
...
...
@@ -51,7 +53,7 @@
{{
end
}}
>
{{preResultStr .PreResult .AlFlag}}
<span
style=
"color: {{color .AlFlag}}"
>
({{.AlFlag}})
</span>
{{preResultStr .PreResult .AlFlag}}
</td>
</tr>
...
...
@@ -59,6 +61,7 @@
{{end}}
</table>
<span
style=
"color: red;font-weight: bold;font-size: 12px"
>
声明:彩市有风险,购彩需谨慎.AI球探只提供预测参考,不构成购彩建议,据AI球探购彩者风险自担.
</span>
{{/*
<div>
<img
src=
"http://mmbiz.qpic.cn/sz_mmbiz_png/BePaFicK2B5R6lNrnAdOpR63megZibx7Gnqj9UlhbGMnKbDYmfkFvIhRsz5LEK27Fukf0sE8NzOlNI2nALx25icQQ/0?wx_fmt=png"
>
</div>
\ No newline at end of file
</div>
*/}}
assets/wechat/html/today.html
浏览文件 @
fe4f7769
...
...
@@ -13,7 +13,8 @@
</ul>
<hr/>
<ul
style=
"font-size: 12px;font-weight: lighter"
>
<li><strong>
更新时间:{{.DataDateStr}}
</strong></li>
<li><strong>
数据爬取时间:{{.SpiderDateStr}}
</strong></li>
<li><strong>
微信同步时间:{{.DataDateStr}}
</strong></li>
<li><strong>
日期:{{.BeginDateStr}} 至 {{.EndDateStr}}
</strong></li>
</ul>
<hr/>
...
...
@@ -25,21 +26,23 @@
<span
style=
"color: orangered"
>
A2
</span>
<span
style=
"color: blue"
>
E1
</span>
<span
style=
"color: darkblue"
>
E2
</span>
{{/*
<span
style=
"color: olivedrab"
>
Q1
</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>
<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>
...
...
@@ -57,7 +60,7 @@
{{
end
}}
>
{{preResultStr .PreResult .AlFlag}}
<span
style=
"color: {{color .AlFlag}}"
>
({{.AlFlag}})
</span>
{{preResultStr .PreResult .AlFlag}}
</td>
</tr>
...
...
@@ -70,6 +73,3 @@
{{end}}
</table>
<span
style=
"color: red;font-weight: bold;font-size: 12px"
>
声明:彩市有风险,购彩需谨慎.AI球探只提供预测参考,不构成购彩建议,据AI球探购彩者风险自担.
</span>
<div>
<img
src=
"http://mmbiz.qpic.cn/sz_mmbiz_png/BePaFicK2B5R6lNrnAdOpR63megZibx7Gnqj9UlhbGMnKbDYmfkFvIhRsz5LEK27Fukf0sE8NzOlNI2nALx25icQQ/0?wx_fmt=png"
>
</div>
\ No newline at end of file
assets/wechat/html/today_detail.html
浏览文件 @
fe4f7769
...
...
@@ -13,7 +13,8 @@
</ul>
<hr/>
<ul
style=
"font-size: 12px;font-weight: lighter"
>
<li><strong>
更新时间:{{.DataDateStr}}
</strong></li>
<li><strong>
数据爬取时间:{{.SpiderDateStr}}
</strong></li>
<li><strong>
微信同步时间:{{.DataDateStr}}
</strong></li>
<li><strong>
日期:{{.BeginDateStr}} 至 {{.EndDateStr}}
</strong></li>
</ul>
<hr/>
...
...
@@ -24,7 +25,7 @@
<li>
比赛时间:{{.MatchDateStr}}
</li>
<li>
联 赛:{{.LeagueName}}
</li>
<li>
对阵双方:{{.MainTeam}}({{.LetBall}}){{.GuestTeam}}
</li>
<li>
算法模型:
<span
style=
"color: {{color .AlFlag}}"
>
({{.AlFlag}})
</span></li>
<li>
算法模型:
<span
style=
"color: {{color .AlFlag}}"
>
{{.AlFlag}}
</span></li>
<li>
球探指数:{{.HitCount}}
<span
style=
"color: red;font-weight: bold;"
>
(指数越大,越稳定)
</span></li>
<li>
推荐选项:{{preResultStr .PreResult .AlFlag}}
</li>
<li>
说 明:
...
...
@@ -43,7 +44,3 @@
<br/>
<span
style=
"color: red;font-weight: bold;font-size: 12px"
>
声明:彩市有风险,购彩需谨慎.AI球探只提供预测参考,不构成购彩建议,据AI球探购彩者风险自担.
</span>
{{/*
<div>
<img
src=
"http://mmbiz.qpic.cn/sz_mmbiz_png/BePaFicK2B5R6lNrnAdOpR63megZibx7Gnqj9UlhbGMnKbDYmfkFvIhRsz5LEK27Fukf0sE8NzOlNI2nALx25icQQ/0?wx_fmt=png"
>
</div>
*/}}
assets/wechat/html/today_tbs.html
浏览文件 @
fe4f7769
...
...
@@ -12,7 +12,8 @@
</ul>
<hr/>
<ul
style=
"font-size: 12px;font-weight: lighter"
>
<li><strong>
更新时间:{{.DataDateStr}}
</strong></li>
<li><strong>
数据爬取时间:{{.SpiderDateStr}}
</strong></li>
<li><strong>
微信同步时间:{{.DataDateStr}}
</strong></li>
<li><strong>
日期:{{.BeginDateStr}} 至 {{.EndDateStr}}
</strong></li>
</ul>
<hr/>
...
...
@@ -29,17 +30,22 @@
</h1>
<table
style=
"font-size: 12px;font-weight: bold"
>
<tr>
<td>
模型
</td>
<td>
指数
</td>
<td>
时间
</td>
<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
style=
"color: red"
>
<strong>
{{.HitCount}}
</strong>
</td>
<td>
{{.MatchDateStr}}
</td>
<td>
{{.LeagueName}}
</td>
<td>
{{.MainTeam}}({{.LetBall}}){{.GuestTeam}}
</td>
...
...
@@ -57,10 +63,7 @@
{{
end
}}
>
{{preResultStr .PreResult .AlFlag}}
<span
style=
"color: {{color .AlFlag}}"
>
({{.AlFlag}})
</span>
</td>
<td
style=
"color: red"
>
<strong>
{{.HitCount}}
</strong>
{{preResultStr .PreResult .AlFlag}}
</td>
</tr>
{{end}}
...
...
@@ -72,7 +75,3 @@
{{end}}
</table>
<span
style=
"color: red;font-weight: bold;font-size: 12px"
>
声明:彩市有风险,购彩需谨慎.AI球探只提供预测参考,不构成购彩建议,据AI球探购彩者风险自担.
</span>
{{/*
<div>
<img
src=
"http://mmbiz.qpic.cn/sz_mmbiz_png/BePaFicK2B5R6lNrnAdOpR63megZibx7Gnqj9UlhbGMnKbDYmfkFvIhRsz5LEK27Fukf0sE8NzOlNI2nALx25icQQ/0?wx_fmt=png"
>
</div>
*/}}
assets/wechat/html/week.html
浏览文件 @
fe4f7769
...
...
@@ -25,15 +25,17 @@
</h1>
<table
style=
"font-size: 12px;font-weight: bold"
>
<tr>
<td>
模型
</td>
<td>
时间
</td>
<td>
联赛
</td>
<td>
主队(让球)客队
</td>
<td>
比分
</td>
<td>
推荐
(模型)
</td>
<td>
推荐
</td>
</tr>
{{with .DataList}}
{{range .}}
<tr>
<td><span
style=
"color: {{color .AlFlag}}"
>
{{.AlFlag}}
</span></td>
<td>
{{.MatchDateStr}}
</td>
<td>
{{.LeagueName}}
</td>
<td>
{{.MainTeam}}({{.LetBall}}){{.GuestTeam}}
</td>
...
...
@@ -51,14 +53,11 @@
{{
end
}}
>
{{preResultStr .PreResult .AlFlag}}
<span
style=
"color: {{color .AlFlag}}"
>
({{.AlFlag}})
</span>
{{preResultStr .PreResult .AlFlag}}
</td>
</tr>
{{end}}
{{end}}
</table>
<span
style=
"color: red;font-weight: bold;font-size: 12px"
>
声明:彩市有风险,购彩需谨慎.AI球探只提供预测参考,不构成购彩建议,据AI球探购彩者风险自担.
</span>
<div>
<img
src=
"http://mmbiz.qpic.cn/sz_mmbiz_png/BePaFicK2B5R6lNrnAdOpR63megZibx7Gnqj9UlhbGMnKbDYmfkFvIhRsz5LEK27Fukf0sE8NzOlNI2nALx25icQQ/0?wx_fmt=png"
>
</div>
\ No newline at end of file
<span
style=
"color: red;font-weight: bold;font-size: 12px"
>
声明:彩市有风险,购彩需谨慎.AI球探只提供预测参考,不构成购彩建议,据AI球探购彩者风险自担.
</span>
\ No newline at end of file
foot-api/module/suggest/vo/MonthVO.go
浏览文件 @
fe4f7769
package
vo
type
MonthVO
struct
{
SpiderDateStr
string
//开始时间
BeginDateStr
string
//结束时间
...
...
@@ -28,5 +29,6 @@ type MonthVO struct {
//胜率
MainVal
string
DataList
[]
SuggestVO
}
foot-api/module/suggest/vo/TodayVO.go
浏览文件 @
fe4f7769
...
...
@@ -3,6 +3,7 @@ package vo
import
"tesou.io/platform/foot-parent/foot-api/module/odds/pojo"
type
TodayVO
struct
{
SpiderDateStr
string
//开始时间
BeginDateStr
string
//结束时间
...
...
foot-api/module/suggest/vo/WeekVO.go
浏览文件 @
fe4f7769
package
vo
type
WeekVO
struct
{
SpiderDateStr
string
//开始时间
BeginDateStr
string
//结束时间
...
...
foot-core/module/analy/service/AnalyService.go
浏览文件 @
fe4f7769
...
...
@@ -181,7 +181,7 @@ func (this *AnalyService) IsRight(last *entity3.AsiaLast, v *entity2.MatchLast,
*/
func
(
this
*
AnalyService
)
ActualResult
(
last
*
entity3
.
AsiaLast
,
v
*
entity2
.
MatchLast
,
analy
*
entity5
.
AnalyResult
)
int
{
var
result
int
h2
,
_
:=
time
.
ParseDuration
(
"1
4
8m"
)
h2
,
_
:=
time
.
ParseDuration
(
"1
2
8m"
)
matchDate
:=
v
.
MatchDate
.
Add
(
h2
)
if
matchDate
.
After
(
time
.
Now
())
{
//比赛未结束
...
...
foot-core/module/analy/service/E2Service.go
浏览文件 @
fe4f7769
...
...
@@ -148,7 +148,7 @@ func (this *E2Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
func
(
this
*
E2Service
)
IsRight
(
last
*
entity3
.
AsiaLast
,
v
*
pojo
.
MatchLast
,
analy
*
entity5
.
AnalyResult
)
string
{
//比赛结果
var
globalResult
int
h2
,
_
:=
time
.
ParseDuration
(
"1
4
8m"
)
h2
,
_
:=
time
.
ParseDuration
(
"1
2
8m"
)
matchDate
:=
v
.
MatchDate
.
Add
(
h2
)
if
matchDate
.
After
(
time
.
Now
())
{
//比赛未结束
...
...
foot-core/module/spider/constants/Constant.go
0 → 100644
浏览文件 @
fe4f7769
package
constants
var
(
SpiderDateStr
=
""
)
foot-core/module/suggest/service/SuggestService.go
浏览文件 @
fe4f7769
...
...
@@ -44,9 +44,9 @@ WHERE mh.LeagueId = l.Id
sql
+=
" AND mh.`MatchDate` <= '"
+
param
.
EndDateStr
+
"' "
}
if
param
.
IsDesc
{
sql
+=
" ORDER BY ar.MatchDate DESC, l.id ASC,mh.MainTeamId asc, ar.PreResult DESC "
sql
+=
" ORDER BY ar.
`AlFlag` DESC,ar.
MatchDate DESC, l.id ASC,mh.MainTeamId asc, ar.PreResult DESC "
}
else
{
sql
+=
" ORDER BY ar.MatchDate ASC, l.id ASC,mh.MainTeamId asc,ar.PreResult DESC "
sql
+=
" ORDER BY ar.
`AlFlag` DESC,ar.
MatchDate ASC, l.id ASC,mh.MainTeamId asc,ar.PreResult DESC "
}
//结果值
entitys
:=
make
([]
*
vo2
.
SuggestVO
,
0
)
...
...
@@ -91,9 +91,9 @@ WHERE mh.LeagueId = l.Id
sql
+=
" AND mh.`MatchDate` <= '"
+
param
.
EndDateStr
+
"' "
}
if
param
.
IsDesc
{
sql
+=
" ORDER BY ar.MatchDate DESC, l.id ASC,mh.MainTeamId asc, ar.PreResult DESC "
sql
+=
" ORDER BY ar.
`AlFlag` DESC,ar.
MatchDate DESC, l.id ASC,mh.MainTeamId asc, ar.PreResult DESC "
}
else
{
sql
+=
" ORDER BY ar.MatchDate ASC, l.id ASC,mh.MainTeamId asc,ar.PreResult DESC "
sql
+=
" ORDER BY ar.
`AlFlag` DESC,ar.
MatchDate ASC, l.id ASC,mh.MainTeamId asc,ar.PreResult DESC "
}
//结果值
entitys
:=
make
([]
*
vo2
.
SuggestVO
,
0
)
...
...
foot-core/module/wechat/service/SuggestMonthService.go
浏览文件 @
fe4f7769
...
...
@@ -13,6 +13,7 @@ import (
"tesou.io/platform/foot-parent/foot-core/common/base/service/mysql"
"tesou.io/platform/foot-parent/foot-core/common/utils"
"tesou.io/platform/foot-parent/foot-core/module/analy/service"
"tesou.io/platform/foot-parent/foot-core/module/spider/constants"
service2
"tesou.io/platform/foot-parent/foot-core/module/suggest/service"
"time"
)
...
...
@@ -65,7 +66,8 @@ func (this *SuggestMonthService) ModifyMonth(wcClient *core.Client) {
first
.
ContentSourceURL
=
contentSourceURL
first
.
Author
=
utils
.
GetVal
(
"wechat"
,
"author"
)
temp
:=
vo
.
WeekVO
{}
temp
:=
vo
.
MonthVO
{}
temp
.
SpiderDateStr
=
constants
.
SpiderDateStr
temp
.
BeginDateStr
=
param
.
BeginDateStr
temp
.
EndDateStr
=
param
.
EndDateStr
temp
.
MatchCount
=
int64
(
len
(
tempList
))
...
...
foot-core/module/wechat/service/SuggestTodayService.go
浏览文件 @
fe4f7769
...
...
@@ -11,6 +11,7 @@ import (
"tesou.io/platform/foot-parent/foot-core/common/base/service/mysql"
"tesou.io/platform/foot-parent/foot-core/common/utils"
"tesou.io/platform/foot-parent/foot-core/module/analy/service"
"tesou.io/platform/foot-parent/foot-core/module/spider/constants"
service2
"tesou.io/platform/foot-parent/foot-core/module/suggest/service"
"time"
)
...
...
@@ -128,6 +129,7 @@ func (this *SuggestTodayService) ModifyToday(wcClient *core.Client) {
first
.
Author
=
utils
.
GetVal
(
"wechat"
,
"author"
)
temp
:=
vo
.
TodayVO
{}
temp
.
SpiderDateStr
=
constants
.
SpiderDateStr
temp
.
BeginDateStr
=
param
.
BeginDateStr
temp
.
EndDateStr
=
param
.
EndDateStr
temp
.
DataDateStr
=
now
.
Format
(
"2006-01-02 15:04:05"
)
...
...
@@ -177,6 +179,7 @@ func (this *SuggestTodayService) ModifyTodayDetail(wcClient *core.Client) {
first
.
Author
=
utils
.
GetVal
(
"wechat"
,
"author"
)
temp
:=
vo
.
TodayVO
{}
temp
.
SpiderDateStr
=
constants
.
SpiderDateStr
temp
.
BeginDateStr
=
param
.
BeginDateStr
temp
.
EndDateStr
=
param
.
EndDateStr
temp
.
DataDateStr
=
now
.
Format
(
"2006-01-02 15:04:05"
)
...
...
@@ -226,6 +229,7 @@ func (this *SuggestTodayService) ModifyTodayTbs(wcClient *core.Client) {
first
.
Author
=
utils
.
GetVal
(
"wechat"
,
"author"
)
temp
:=
vo
.
TodayVO
{}
temp
.
SpiderDateStr
=
constants
.
SpiderDateStr
temp
.
BeginDateStr
=
param
.
BeginDateStr
temp
.
EndDateStr
=
param
.
EndDateStr
temp
.
DataDateStr
=
now
.
Format
(
"2006-01-02 15:04:05"
)
...
...
foot-core/module/wechat/service/SuggestWeekService.go
浏览文件 @
fe4f7769
...
...
@@ -13,6 +13,7 @@ import (
"tesou.io/platform/foot-parent/foot-core/common/base/service/mysql"
"tesou.io/platform/foot-parent/foot-core/common/utils"
"tesou.io/platform/foot-parent/foot-core/module/analy/service"
"tesou.io/platform/foot-parent/foot-core/module/spider/constants"
service2
"tesou.io/platform/foot-parent/foot-core/module/suggest/service"
"time"
)
...
...
@@ -66,6 +67,7 @@ func (this *SuggestWeekService) ModifyWeek(wcClient *core.Client) {
first
.
ShowCoverPic
=
0
first
.
Author
=
utils
.
GetVal
(
"wechat"
,
"author"
)
temp
:=
vo
.
WeekVO
{}
temp
.
SpiderDateStr
=
constants
.
SpiderDateStr
temp
.
BeginDateStr
=
param
.
BeginDateStr
temp
.
EndDateStr
=
param
.
EndDateStr
temp
.
MatchCount
=
int64
(
len
(
tempList
))
...
...
foot-spider/launch/FS101PortalApplication.go
浏览文件 @
fe4f7769
...
...
@@ -4,6 +4,8 @@ import (
"strconv"
"tesou.io/platform/foot-parent/foot-core/common/utils"
"tesou.io/platform/foot-parent/foot-core/launch"
"tesou.io/platform/foot-parent/foot-core/module/spider/constants"
"time"
)
func
Clean
(){
...
...
@@ -33,4 +35,6 @@ func Spider() {
//再对欧赔数据不完整的比赛进行两次抓取
Spider_euroHis_Incomplete
()
Spider_euroHis_Incomplete
()
//记录数据爬取时间
constants
.
SpiderDateStr
=
time
.
Now
()
.
Format
(
"2006-01-02 15:04:05"
)
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录