Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
加钱居士.
foot
提交
7e43ac0e
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 搜索 >>
提交
7e43ac0e
编写于
2月 13, 2020
作者:
M
monomania
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.调整统计
上级
c0eaf980
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
44 addition
and
21 deletion
+44
-21
assets/wechat/html/month.html
assets/wechat/html/month.html
+1
-1
assets/wechat/html/week.html
assets/wechat/html/week.html
+1
-1
conf/app.ini
conf/app.ini
+5
-4
conf/app_prod.ini
conf/app_prod.ini
+3
-2
foot-core/module/analy/service/AnalyService.go
foot-core/module/analy/service/AnalyService.go
+27
-11
foot-core/module/wechat/service/SuggestMonthService.go
foot-core/module/wechat/service/SuggestMonthService.go
+1
-1
foot-core/module/wechat/service/SuggestTodayService.go
foot-core/module/wechat/service/SuggestTodayService.go
+5
-0
foot-core/module/wechat/service/SuggestWeekService.go
foot-core/module/wechat/service/SuggestWeekService.go
+1
-1
未找到文件。
assets/wechat/html/month.html
浏览文件 @
7e43ac0e
...
...
@@ -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}}
...
...
assets/wechat/html/week.html
浏览文件 @
7e43ac0e
...
...
@@ -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}}
...
...
conf/app.ini
浏览文件 @
7e43ac0e
[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
...
...
conf/app_prod.ini
浏览文件 @
7e43ac0e
...
...
@@ -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
...
...
foot-core/module/analy/service/AnalyService.go
浏览文件 @
7e43ac0e
...
...
@@ -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
...
...
foot-core/module/wechat/service/SuggestMonthService.go
浏览文件 @
7e43ac0e
...
...
@@ -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
=
get
Stat
AlFlag
()
tempList
:=
this
.
SuggestService
.
Query
(
param
)
//更新推送
first
:=
material
.
Article
{}
...
...
foot-core/module/wechat/service/SuggestTodayService.go
浏览文件 @
7e43ac0e
...
...
@@ -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
;
...
...
foot-core/module/wechat/service/SuggestWeekService.go
浏览文件 @
7e43ac0e
...
...
@@ -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
=
get
Stat
AlFlag
()
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录