Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
加钱居士.
foot
提交
e5d7d413
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,发现更多精彩内容 >>
提交
e5d7d413
编写于
3月 13, 2020
作者:
M
monomania
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.处理杯赛cup match标识
上级
d9900714
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
24 addition
and
20 deletion
+24
-20
foot-core/module/analy/service/A3Service.go
foot-core/module/analy/service/A3Service.go
+1
-5
foot-core/module/analy/service/AnalyService.go
foot-core/module/analy/service/AnalyService.go
+13
-2
foot-core/module/analy/service/C1Service.go
foot-core/module/analy/service/C1Service.go
+2
-2
foot-core/module/analy/service/C2Service.go
foot-core/module/analy/service/C2Service.go
+2
-2
foot-core/module/analy/service/C3Service.go
foot-core/module/analy/service/C3Service.go
+5
-4
foot-core/module/analy/service/E3Service.go
foot-core/module/analy/service/E3Service.go
+1
-5
未找到文件。
foot-core/module/analy/service/A3Service.go
浏览文件 @
e5d7d413
...
...
@@ -214,11 +214,7 @@ func (this *A3Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
bffe_main
:=
this
.
BFFutureEventService
.
FindNextBattle
(
matchId
,
v
.
MainTeamId
)
bffe_guest
:=
this
.
BFFutureEventService
.
FindNextBattle
(
matchId
,
v
.
GuestTeamId
)
if
strings
.
Contains
(
bffe_main
.
EventLeagueId
,
"杯"
)
{
//下一场打杯赛
return
-
3
,
nil
}
if
strings
.
Contains
(
bffe_guest
.
EventLeagueId
,
"杯"
)
{
if
this
.
IsCupMatch
(
bffe_main
.
EventLeagueId
)
||
this
.
IsCupMatch
(
bffe_guest
.
EventLeagueId
)
{
//下一场打杯赛
return
-
3
,
nil
}
...
...
foot-core/module/analy/service/AnalyService.go
浏览文件 @
e5d7d413
...
...
@@ -268,9 +268,11 @@ func (this *AnalyService) IsRight2Option(last *entity2.MatchLast, analy *entity5
}
analy
.
Result
=
resultFlag
league
:=
this
.
LeagueService
.
FindById
(
last
.
LeagueId
)
if
strings
.
Contains
(
league
.
Name
,
"杯"
)
||
strings
.
Contains
(
league
.
Name
,
"赛"
){
if
this
.
IsCupMatch
(
league
.
Name
){
analy
.
TOVoid
=
true
analy
.
TOVoidDesc
=
"杯赛"
}
else
{
analy
.
TOVoidDesc
=
""
}
//打印数据
...
...
@@ -279,6 +281,13 @@ func (this *AnalyService) IsRight2Option(last *entity2.MatchLast, analy *entity5
return
resultFlag
}
func
(
this
*
AnalyService
)
IsCupMatch
(
leagueName
string
)
bool
{
if
strings
.
Contains
(
leagueName
,
"杯"
)
||
strings
.
Contains
(
leagueName
,
"锦"
){
return
true
;
}
return
false
;
}
func
(
this
*
AnalyService
)
IsRight
(
last
*
entity2
.
MatchLast
,
analy
*
entity5
.
AnalyResult
)
string
{
//比赛结果
globalResult
:=
this
.
ActualResult
(
last
,
analy
)
...
...
@@ -295,9 +304,11 @@ func (this *AnalyService) IsRight(last *entity2.MatchLast, analy *entity5.AnalyR
analy
.
Result
=
resultFlag
league
:=
this
.
LeagueService
.
FindById
(
last
.
LeagueId
)
if
strings
.
Contains
(
league
.
Name
,
"杯"
)
||
strings
.
Contains
(
league
.
Name
,
"赛"
){
if
this
.
IsCupMatch
(
league
.
Name
){
analy
.
TOVoid
=
true
analy
.
TOVoidDesc
=
"杯赛"
}
else
{
analy
.
TOVoidDesc
=
"杯赛"
}
//打印数据
...
...
foot-core/module/analy/service/C1Service.go
浏览文件 @
e5d7d413
...
...
@@ -268,7 +268,7 @@ func (this *C1Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
//未来赛事
bffe_main
:=
this
.
BFFutureEventService
.
FindNextBattle
(
matchId
,
v
.
MainTeamId
)
bffe_guest
:=
this
.
BFFutureEventService
.
FindNextBattle
(
matchId
,
v
.
GuestTeamId
)
if
strings
.
Contains
(
bffe_main
.
EventLeagueId
,
"杯"
)
{
if
this
.
IsCupMatch
(
bffe_main
.
EventLeagueId
)
{
//下一场打杯赛
return
-
3
,
nil
}
else
{
...
...
@@ -277,7 +277,7 @@ func (this *C1Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
letBall
+=
0.125
}
}
if
strings
.
Contains
(
bffe_guest
.
EventLeagueId
,
"杯"
)
{
if
this
.
IsCupMatch
(
bffe_guest
.
EventLeagueId
)
{
//下一场打杯赛
return
-
3
,
nil
}
else
{
...
...
foot-core/module/analy/service/C2Service.go
浏览文件 @
e5d7d413
...
...
@@ -285,7 +285,7 @@ func (this *C2Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
bffe_main
:=
this
.
BFFutureEventService
.
FindNextBattle
(
matchId
,
v
.
MainTeamId
)
bffe_guest
:=
this
.
BFFutureEventService
.
FindNextBattle
(
matchId
,
v
.
GuestTeamId
)
if
strings
.
Contains
(
bffe_main
.
EventLeagueId
,
"杯"
)
{
if
this
.
IsCupMatch
(
bffe_main
.
EventLeagueId
)
{
//下一场打杯赛
return
-
3
,
nil
}
else
{
...
...
@@ -294,7 +294,7 @@ func (this *C2Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
letBall
+=
(
baseVal
)
}
}
if
strings
.
Contains
(
bffe_guest
.
EventLeagueId
,
"杯"
)
{
if
this
.
IsCupMatch
(
bffe_guest
.
EventLeagueId
)
{
//下一场打杯赛
return
-
3
,
nil
}
else
{
...
...
foot-core/module/analy/service/C3Service.go
浏览文件 @
e5d7d413
...
...
@@ -282,7 +282,7 @@ func (this *C3Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
bffe_main
:=
this
.
BFFutureEventService
.
FindNextBattle
(
matchId
,
v
.
MainTeamId
)
bffe_guest
:=
this
.
BFFutureEventService
.
FindNextBattle
(
matchId
,
v
.
GuestTeamId
)
if
strings
.
Contains
(
bffe_main
.
EventLeagueId
,
"杯"
)
{
if
this
.
IsCupMatch
(
bffe_main
.
EventLeagueId
)
{
//下一场打杯赛
//return -3, nil
}
else
{
...
...
@@ -291,7 +291,8 @@ func (this *C3Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
letBall
+=
(
baseVal
)
}
}
if
strings
.
Contains
(
bffe_guest
.
EventLeagueId
,
"杯"
)
{
if
this
.
IsCupMatch
(
bffe_guest
.
EventLeagueId
){
//下一场打杯赛
//return -3, nil
}
else
{
...
...
@@ -377,10 +378,10 @@ func (this *C3Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
base
.
Log
.
Info
(
"-"
)
}
if
preResult
==
3
&&
strings
.
Contains
(
bffe_main
.
EventLeagueId
,
"杯"
)
{
if
preResult
==
3
&&
this
.
IsCupMatch
(
bffe_main
.
EventLeagueId
)
{
//下一场打杯赛
return
-
3
,
nil
}
else
if
preResult
==
0
&&
strings
.
Contains
(
bffe_guest
.
EventLeagueId
,
"杯"
)
{
}
else
if
preResult
==
0
&&
this
.
IsCupMatch
(
bffe_guest
.
EventLeagueId
)
{
//下一场打杯赛
return
-
3
,
nil
}
...
...
foot-core/module/analy/service/E3Service.go
浏览文件 @
e5d7d413
...
...
@@ -124,11 +124,7 @@ func (this *E3Service) analyStub(v *pojo.MatchLast) (int, *entity5.AnalyResult)
bffe_main
:=
this
.
BFFutureEventService
.
FindNextBattle
(
matchId
,
v
.
MainTeamId
)
bffe_guest
:=
this
.
BFFutureEventService
.
FindNextBattle
(
matchId
,
v
.
GuestTeamId
)
if
strings
.
Contains
(
bffe_main
.
EventLeagueId
,
"杯"
)
{
//下一场打杯赛
return
-
3
,
nil
}
if
strings
.
Contains
(
bffe_guest
.
EventLeagueId
,
"杯"
)
{
if
this
.
IsCupMatch
(
bffe_main
.
EventLeagueId
)
||
this
.
IsCupMatch
(
bffe_guest
.
EventLeagueId
)
{
//下一场打杯赛
return
-
3
,
nil
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录