Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
加钱居士.
foot
提交
000e0477
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,体验更适合开发者的 AI 搜索 >>
提交
000e0477
编写于
12月 21, 2019
作者:
M
monomania
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.更新比赛结果
上级
0b01a190
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
74 addition
and
18 deletion
+74
-18
conf/app.ini
conf/app.ini
+1
-1
foot-core/launch/FC200AnalyApplication.go
foot-core/launch/FC200AnalyApplication.go
+22
-17
foot-core/module/analy/service/AnalyService.go
foot-core/module/analy/service/AnalyService.go
+41
-0
foot-core/module/match/service/MatchHisService.go
foot-core/module/match/service/MatchHisService.go
+10
-0
未找到文件。
conf/app.ini
浏览文件 @
000e0477
...
...
@@ -27,7 +27,7 @@ team_option=0-3:-1,4-18:-1,19-23:-1
###使用的算法,如是推荐到雷速,使用Euro20191212Service,如是推荐到其他平台可暂不使用
#al_flag=Euro20191212Service
###处法命中次数
hit_count
=
2
hit_count
=
3
[leisu]
###执行周期间隔时间
cycle_time
=
30
...
...
foot-core/launch/FC200AnalyApplication.go
浏览文件 @
000e0477
...
...
@@ -10,24 +10,29 @@ import (
func
Analy
()
{
//关闭SQL输出
mysql
.
ShowSQL
(
false
)
//base.Log.Info("---------------------------------------------------------------")
//base.Log.Info("----------------Euro20191212Service-------------------")
//base.Log.Info("---------------------------------------------------------------")
//euro616_104Service := new(service.Euro20191212Service)
//euro616_104Service.MaxLetBall = 0.5
//euro616_104Service.PrintOddData = false
//euro616_104Service.Analy()
//base.Log.Info("---------------------------------------------------------------")
//base.Log.Info("----------------Euro20191206Service-------------------")
//base.Log.Info("---------------------------------------------------------------")
//euro_81_616Service := new(service.Euro20191206Service)
//euro_81_616Service.MaxLetBall = 0.75
//euro_81_616Service.PrintOddData = false
//euro_81_616Service.Analy()
//base.Log.Info("---------------------------------------------------------------")
//base.Log.Info("---------------Asia20191206Service--------------")
//base.Log.Info("---------------------------------------------------------------")
//euro81616Service := new(service.Asia20191206Service)
//euro81616Service.Analy()
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
base
.
Log
.
Info
(
"---------------
-Euro20191212Service-----
--------------"
)
base
.
Log
.
Info
(
"---------------
处理结果
--------------"
)
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
euro616_104Service
:=
new
(
service
.
Euro20191212Service
)
euro616_104Service
.
MaxLetBall
=
0.5
euro616_104Service
.
PrintOddData
=
false
euro616_104Service
.
Analy
()
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
base
.
Log
.
Info
(
"----------------Euro20191206Service-------------------"
)
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
euro_81_616Service
:=
new
(
service
.
Euro20191206Service
)
euro_81_616Service
.
MaxLetBall
=
0.75
euro_81_616Service
.
PrintOddData
=
false
euro_81_616Service
.
Analy
()
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
base
.
Log
.
Info
(
"---------------Asia20191206Service--------------"
)
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
euro81616Service
:=
new
(
service
.
Asia20191206Service
)
euro81616Service
.
Analy
()
analyService
:=
new
(
service
.
AnalyService
)
analyService
.
ModifyResult
()
mysql
.
ShowSQL
(
true
)
}
foot-core/module/analy/service/AnalyService.go
浏览文件 @
000e0477
...
...
@@ -25,6 +25,7 @@ type AnalyService struct {
service
.
EuroHisService
service
.
AsiaLastService
service2
.
MatchLastService
service2
.
MatchHisService
service3
.
LeagueService
//是否打印赔率数据
PrintOddData
bool
...
...
@@ -73,6 +74,46 @@ func (this *AnalyService) teamOption() int {
return
result
}
func
(
this
*
AnalyService
)
ModifyResult
()
{
sql_build
:=
`
SELECT
ar.*
FROM
foot.t_analy_result ar
WHERE ar.MatchDate > NOW()
AND ar.Result = '待定'
`
//结果值
entitys
:=
make
([]
*
entity5
.
AnalyResult
,
0
)
//执行查询
this
.
FindBySQL
(
sql_build
,
&
entitys
)
if
len
(
entitys
)
<=
0
{
return
}
for
_
,
e
:=
range
entitys
{
aList
:=
this
.
AsiaLastService
.
FindByMatchIdCompId
(
e
.
MatchId
,
"18Bet"
)
if
len
(
aList
)
<
1
{
continue
}
his
:=
this
.
MatchHisService
.
FindById
(
e
.
MatchId
)
if
nil
==
his
{
continue
}
last
:=
new
(
entity2
.
MatchLast
)
last
.
MatchDate
=
his
.
MatchDate
last
.
DataDate
=
his
.
DataDate
last
.
LeagueId
=
his
.
LeagueId
last
.
MainTeamId
=
his
.
MainTeamId
last
.
MainTeamGoals
=
his
.
MainTeamGoals
last
.
GuestTeamId
=
his
.
GuestTeamId
last
.
GuestTeamGoals
=
his
.
GuestTeamGoals
e
.
Result
=
this
.
IsRight
(
aList
[
0
],
last
,
e
.
PreResult
)
this
.
Modify
(
e
)
}
}
func
(
this
*
AnalyService
)
ListDefaultData
()
[]
*
vo
.
AnalyResultVO
{
teamOption
:=
this
.
teamOption
()
al_flag
:=
utils
.
GetVal
(
constants
.
SECTION_NAME
,
"al_flag"
)
...
...
foot-core/module/match/service/MatchHisService.go
浏览文件 @
000e0477
...
...
@@ -17,3 +17,13 @@ func (this *MatchHisService) FindExists(v *pojo.MatchHis) bool {
}
return
has
}
func
(
this
*
MatchHisService
)
FindById
(
matchId
string
)
*
pojo
.
MatchHis
{
data
:=
new
(
pojo
.
MatchHis
)
data
.
Id
=
matchId
_
,
err
:=
mysql
.
GetEngine
()
.
Get
(
data
)
if
err
!=
nil
{
base
.
Log
.
Info
(
"FindById:"
,
err
)
}
return
data
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录