Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
加钱居士.
foot
提交
129e5e5e
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 搜索 >>
提交
129e5e5e
编写于
2月 08, 2020
作者:
M
monomania
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.xxx
上级
f10bd486
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
50 addition
and
27 deletion
+50
-27
FC002AnalyTest.go
FC002AnalyTest.go
+2
-2
foot-core/module/analy/service/C1Service.go
foot-core/module/analy/service/C1Service.go
+38
-17
link_able_2.sql
link_able_2.sql
+10
-8
未找到文件。
FC002AnalyTest.go
浏览文件 @
129e5e5e
...
...
@@ -14,14 +14,14 @@ func main() {
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
c1
:=
new
(
service
.
C1Service
)
c1
.
MaxLetBall
=
1
//
c1.Analy(true)
c1
.
Analy
(
true
)
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
base
.
Log
.
Info
(
"---------------E1模型--------------"
)
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
e1
:=
new
(
service
.
E1Service
)
e1
.
MaxLetBall
=
1
e1
.
PrintOddData
=
true
e1
.
Analy
(
true
)
//
e1.Analy(true)
//关闭SQL输出
mysql
.
ShowSQL
(
true
)
}
...
...
foot-core/module/analy/service/C1Service.go
浏览文件 @
129e5e5e
...
...
@@ -137,6 +137,7 @@ func (this *C1Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
if
math
.
Abs
(
a18betData
.
ELetBall
)
>
this
.
MaxLetBall
{
temp_data
:=
this
.
Find
(
v
.
Id
,
this
.
ModelName
())
temp_data
.
LetBall
=
a18betData
.
ELetBall
//temp_data.Result =""
return
-
2
,
temp_data
//return -2, nil
}
...
...
@@ -147,6 +148,7 @@ func (this *C1Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
if
math
.
Abs
(
sLetBall
-
eLetBall
)
>
0.25
{
temp_data
:=
this
.
Find
(
v
.
Id
,
this
.
ModelName
())
temp_data
.
LetBall
=
a18betData
.
ELetBall
//temp_data.Result =""
return
-
2
,
temp_data
//return -2, nil
}
...
...
@@ -159,7 +161,7 @@ func (this *C1Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
if
len
(
bfs_arr
)
<
1
{
return
-
1
,
nil
}
if
matchId
==
"17
70548
"
{
if
matchId
==
"17
42969
"
{
base
.
Log
.
Info
(
"-"
)
}
var
temp_val
float64
...
...
@@ -191,23 +193,38 @@ func (this *C1Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
rankDiff
:=
3.0
if
mainZongBfs
.
MatchCount
>=
8
&&
guestZongBfs
.
MatchCount
>=
8
{
//排名越小越好
temp_val
=
float64
(
mainZongBfs
.
Ranking
-
guestZongBfs
.
Ranking
)
if
temp_val
>=
rankDiff
{
letBall
-=
(
temp_val
/
rankDiff
)
*
baseVal
xishu
:=
1.0
if
temp_val
>
11
{
xishu
=
3.0
}
else
if
temp_val
>
5
{
xishu
=
2.0
}
letBall
-=
(
temp_val
/
rankDiff
)
*
baseVal
*
xishu
}
temp_val
=
float64
(
guestZongBfs
.
Ranking
-
mainZongBfs
.
Ranking
)
if
temp_val
>=
rankDiff
{
letBall
+=
(
temp_val
/
rankDiff
)
*
baseVal
xishu
:=
1.0
if
temp_val
>
11
{
xishu
=
3.0
}
else
if
temp_val
>
5
{
xishu
=
2.0
}
letBall
+=
(
temp_val
/
rankDiff
)
*
baseVal
*
xishu
}
temp_val
=
float64
(
mainZhuBfs
.
Ranking
-
guestKeBfs
.
Ranking
)
if
temp_val
>=
rankDiff
{
letBall
-=
(
temp_val
/
rankDiff
)
*
baseVal
xishu
:=
1.0
letBall
-=
(
temp_val
/
rankDiff
/
2
)
*
baseVal
*
xishu
}
temp_val
=
float64
(
guestKeBfs
.
Ranking
-
mainZhuBfs
.
Ranking
)
if
temp_val
>=
rankDiff
{
letBall
+=
(
temp_val
/
rankDiff
)
*
baseVal
xishu
:=
1.0
letBall
+=
(
temp_val
/
rankDiff
/
2
)
*
baseVal
*
xishu
}
}
else
{
//return -1, nil
}
//------
...
...
@@ -230,10 +247,10 @@ func (this *C1Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
}
}
if
mainWin
>
guestWin
{
letBall
+=
baseVal
+
float64
(
mainWin
-
guestWin
)
*
baseVal
letBall
+=
baseVal
+
float64
(
mainWin
-
guestWin
)
*
baseVal
*
3
}
if
guestWin
>
mainWin
{
letBall
-=
baseVal
+
float64
(
guestWin
-
mainWin
)
*
baseVal
letBall
-=
baseVal
+
float64
(
guestWin
-
mainWin
)
*
baseVal
*
3
}
//------
bffe_main
:=
this
.
BFFutureEventService
.
FindNextBattle
(
matchId
,
v
.
MainTeamId
)
...
...
@@ -279,25 +296,29 @@ func (this *C1Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
tLetBall
:=
math
.
Abs
(
letBall
)
//maxLetBall := math.Max(sLetBall, eLetBall)
tempLetball1
:=
math
.
Abs
(
sLetBall
-
tLetBall
)
if
tempLetball1
<
0.
25
{
if
tempLetball1
<
0.
1
{
sectionBlock1
=
1
}
else
if
tempLetball1
<
0.5
{
}
else
if
tempLetball1
<
0.
2
5
{
sectionBlock1
=
2
}
else
if
tempLetball1
<
0.
7
5
{
}
else
if
tempLetball1
<
0.
4
5
{
sectionBlock1
=
3
}
else
if
tempLetball1
<
1
{
}
else
if
tempLetball1
<
0.7
{
sectionBlock1
=
4
}
else
{
sectionBlock1
=
10000
}
tempLetball2
:=
math
.
Abs
(
eLetBall
-
tLetBall
)
if
tempLetball2
<
0.
25
{
if
tempLetball2
<
0.
1
{
sectionBlock2
=
1
}
else
if
tempLetball2
<
0.5
{
}
else
if
tempLetball2
<
0.
2
5
{
sectionBlock2
=
2
}
else
if
tempLetball2
<
0.
7
5
{
}
else
if
tempLetball2
<
0.
4
5
{
sectionBlock2
=
3
}
else
if
tempLetball2
<
1
{
}
else
if
tempLetball2
<
0.7
{
sectionBlock2
=
4
}
else
{
sectionBlock2
=
10000
}
//3.0即时盘赔率大于等于初盘赔率
...
...
@@ -307,7 +328,7 @@ func (this *C1Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
//看两个区间是否属于同一个区间
//if sectionBlock1 == 1 && sectionBlock2 == 1 {
if
sectionBlock1
<
2
&&
sectionBlock2
<
2
{
if
sectionBlock1
<
=
3
&&
sectionBlock2
<=
3
{
if
mainLetball
&&
letBall
>
0.1
&&
endUp
&&
notZero
{
preResult
=
3
}
else
if
!
mainLetball
&&
letBall
<
-
0.1
&&
endUp
&&
notZero
{
...
...
link_able_2.sql
浏览文件 @
129e5e5e
...
...
@@ -4,23 +4,25 @@ SELECT
ar
.
`PreResult`
,
ar
.
`Result`
,
ar
.
`HitCount`
,
ar
.
`LetBall`
,
ar
.
`MyLetBall`
,
l
.
Name
AS
LeagueName
,
mh
.
MainTeamId
AS
MainTeam
,
mh
.
GuestTeamId
AS
GuestTeam
,
mh
.
MainTeamGoals
AS
MainTeamGoal
,
mh
.
GuestTeamGoals
AS
GuestTeamGoal
mh
.
GuestTeamGoals
AS
GuestTeamGoal
FROM
foot
.
t_league
l
,
foot
.
t_match_his
mh
,
foot
.
t_analy_result
ar
,
(
SELECT
ar1
.
`MatchId`
(
SELECT
ar1
.
`MatchId`
FROM
foot
.
`t_analy_result`
ar1
,
foot
.
`t_analy_result`
ar2
WHERE
ar1
.
`MatchId`
=
ar2
.
`MatchId`
AND
ar1
.
`AlFlag`
=
'
E2
'
AND
ar2
.
`AlFlag`
=
'
C1
'
foot
.
`t_analy_result`
ar2
WHERE
ar1
.
`MatchId`
=
ar2
.
`MatchId`
AND
ar1
.
`AlFlag`
=
'
'
E2
'
'
AND
ar2
.
`AlFlag`
=
'
'
C1
'
'
AND
ar1
.
`PreResult`
=
ar2
.
`PreResult`
AND
ar1
.
`HitCount`
>
0
AND
ar2
.
`HitCount`
>
0
...
...
@@ -28,7 +30,7 @@ FROM
WHERE
mh
.
LeagueId
=
l
.
Id
AND
mh
.
Id
=
ar
.
MatchId
AND
ar
.
`MatchId`
=
temp
.
MatchId
AND
ar
.
`AlFlag`
IN
(
'
E2'
,
'C1
'
)
AND
ar
.
`AlFlag`
IN
(
'
'
E2
''
,
''
C1
'
'
)
ORDER
BY
ar
.
MatchDate
DESC
,
l
.
id
ASC
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录