提交 7e43ac0e 编写于 作者: M monomania

1.调整统计

上级 c0eaf980
......@@ -13,7 +13,7 @@
<span style="color: gray; ">黑:{{.BlackCount}},</span>
胜率:{{.RedCount}}/({{.RedCount}}+{{.BlackCount}})={{.Val}}
</li>
<li>C1模型统计,
<li>次防平统计,
<span style="color: red; ">红:{{.MainRedCount}},</span>
<span style="color: gray; ">黑:{{.MainBlackCount}},</span>
胜率:{{.MainRedCount}}/({{.MainRedCount}}+{{.MainBlackCount}})={{.MainVal}}
......
......@@ -13,7 +13,7 @@
<span style="color: gray; ">黑:{{.BlackCount}},</span>
胜率:{{.RedCount}}/({{.RedCount}}+{{.BlackCount}})={{.Val}}
</li>
<li>C1模型统计,
<li>次防平统计,
<span style="color: red; ">红:{{.MainRedCount}},</span>
<span style="color: gray; ">黑:{{.MainBlackCount}},</span>
胜率:{{.MainRedCount}}/({{.MainRedCount}}+{{.MainBlackCount}})={{.MainVal}}
......
[mysql]
url=root:Meta.123@tcp(mysql.io:3306)/foot?charset=utf8
#url=root:awe.FOG5188@tcp(39.108.212.245:3306)/foot?charset=utf8
#url=root:Meta.123@tcp(mysql.io:3306)/foot?charset=utf8
url=root:awe.FOG5188@tcp(39.108.212.245:3306)/foot?charset=utf8
maxIdle=10
maxConn=50
[cookies]
......@@ -53,8 +53,9 @@ content_tpl="本次推荐为程序全自动处理,全程无人为参与干预.
price_strategy=0
[wechat]
###推荐使用的算法
al_flag='A1','C1'
main_al_flag='','C1'
al_flag='A1','C1','E2'
stat_al_flag='','A1'
main_al_flag='','A1'
OriId=gh_a8328f3c25d2
AppID=wx76e3dd0445aa0055
AppSecret=4257a40eb6f59e50777fdcc2b47b31a4
......
......@@ -52,8 +52,9 @@ content_tpl="本次推荐为程序全自动处理,全程无人为参与干预.
price_strategy=0
[wechat]
###推荐使用的算法
al_flag='C1','E2'
main_al_flag='','C1'
al_flag='A1','C1','E2'
stat_al_flag='','A1'
main_al_flag='','A1'
OriId=gh_a8328f3c25d2
AppID=wx76e3dd0445aa0055
AppSecret=4257a40eb6f59e50777fdcc2b47b31a4
......
......@@ -317,7 +317,7 @@ func (this *AnalyService) ActualResult(last *entity2.MatchLast, analy *entity5.A
1.欧赔是主降还是主升 主降为true
*/
func EuroMainDown(e81 *entity3.EuroHis, e616 *entity3.EuroHis) int {
if e81.Ep3 <= e81.Sp3 && e616.Ep3 <= e616.Sp3 && e616.Ep3 <= e81.Ep3{
if e81.Ep3 <= e81.Sp3 && e616.Ep3 <= e616.Sp3 && e616.Ep3 <= e81.Ep3 {
return 3
} else if e81.Ep0 <= e81.Sp0 && e616.Ep0 <= e616.Sp0 && e616.Ep0 <= e81.Ep0 {
return 0
......@@ -328,18 +328,34 @@ func EuroMainDown(e81 *entity3.EuroHis, e616 *entity3.EuroHis) int {
/**
2.亚赔是主降还是主升 主降为true
*/
func AsiaMainDown(his *entity3.AsiaHis) bool {
slb_sum := his.SLetBall
elb_sum := his.ELetBall
if elb_sum > slb_sum {
return true
} else if elb_sum < slb_sum {
return false
func AsiaMainDown(ahis *entity3.AsiaHis) bool {
slb := ahis.SLetBall
elb := ahis.ELetBall
if elb > 0 {
if elb > slb {
return true
} else if elb < slb {
return false
} else {
//初始让球和即时让球一致
if ahis.Ep3-ahis.Sp3 > 0 {
return false
} else {
return true
}
}
} else {
//初始让球和即时让球一致
if his.Ep3 < his.Sp3 {
if elb < slb {
return false
} else if elb > slb {
return true
} else {
//初始让球和即时让球一致
if ahis.Ep0-ahis.Sp0 > 0 {
return true
} else {
return false
}
}
}
return false
......
......@@ -59,7 +59,7 @@ func (this *SuggestMonthService) ModifyMonth(wcClient *core.Client) {
param.BeginDateStr = beginDate.Format("2006-01-02 15:04:05")
param.IsDesc = true
//今日推荐
param.AlFlag = getAlFlag()
param.AlFlag = getStatAlFlag()
tempList := this.SuggestService.Query(param)
//更新推送
first := material.Article{}
......
......@@ -86,6 +86,11 @@ func getAlFlag() string {
return al_flag;
}
func getStatAlFlag() string {
al_flag := utils.GetVal("wechat", "stat_al_flag")
return al_flag;
}
func getMainAlFlag() string {
al_flag := utils.GetVal("wechat", "main_al_flag")
return al_flag;
......
......@@ -59,7 +59,7 @@ func (this *SuggestWeekService) ModifyWeek(wcClient *core.Client) {
param.BeginDateStr = beginDate.Format("2006-01-02 15:04:05")
param.IsDesc = true
//今日推荐
param.AlFlag = getAlFlag()
param.AlFlag = getStatAlFlag()
tempList := this.SuggestService.Query(param)
//更新推送
first := material.Article{}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册