Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
加钱居士.
foot
提交
dc836683
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 搜索 >>
提交
dc836683
编写于
12月 17, 2019
作者:
S
shi.zeyuan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.移除mysql.Show的设置 2.更新算法分析名称带上时间归类
上级
386d18a8
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
70 addition
and
37 deletion
+70
-37
FC003PubApplication.go
FC003PubApplication.go
+1
-1
FOOT000TestApplication.go
FOOT000TestApplication.go
+6
-3
FS001AsiaModifyApplication.go
FS001AsiaModifyApplication.go
+1
-1
FS001EuroIncompleteApplication.go
FS001EuroIncompleteApplication.go
+1
-1
FS001EuroModifyApplication.go
FS001EuroModifyApplication.go
+1
-1
conf/app.ini
conf/app.ini
+1
-1
foot-core/common/base/service/mysql/BaseService.go
foot-core/common/base/service/mysql/BaseService.go
+1
-1
foot-core/launch/FC101DBInitApplication.go
foot-core/launch/FC101DBInitApplication.go
+2
-2
foot-core/launch/FC200AnalyApplication.go
foot-core/launch/FC200AnalyApplication.go
+7
-6
foot-core/module/analy/service/Asia20191206Service.go
foot-core/module/analy/service/Asia20191206Service.go
+3
-3
foot-core/module/analy/service/Euro20191206Service.go
foot-core/module/analy/service/Euro20191206Service.go
+3
-3
foot-core/module/analy/service/Euro20191212Service.go
foot-core/module/analy/service/Euro20191212Service.go
+3
-3
foot-core/module/match/service/MatchHisService.go
foot-core/module/match/service/MatchHisService.go
+13
-1
foot-core/module/match/service/MatchLastService.go
foot-core/module/match/service/MatchLastService.go
+3
-3
foot-spider/launch/FS101PortalApplication.go
foot-spider/launch/FS101PortalApplication.go
+1
-2
foot-spider/module/win007/proc/MatchLastProcesser.go
foot-spider/module/win007/proc/MatchLastProcesser.go
+23
-5
未找到文件。
FC003PubApplication.go
浏览文件 @
dc836683
...
@@ -9,7 +9,7 @@ import (
...
@@ -9,7 +9,7 @@ import (
func
main
()
{
func
main
()
{
//开启SQL输出
//开启SQL输出
mysql
.
ShowSQL
(
true
)
pubService
:=
new
(
service
.
PubService
)
pubService
:=
new
(
service
.
PubService
)
pubService
.
PubBJDC
()
pubService
.
PubBJDC
()
...
...
FOOT000TestApplication.go
浏览文件 @
dc836683
...
@@ -7,16 +7,19 @@ import (
...
@@ -7,16 +7,19 @@ import (
"io"
"io"
"math/rand"
"math/rand"
"strconv"
"strconv"
"tesou.io/platform/foot-parent/foot-core/common/base/service/mysql"
utils2
"tesou.io/platform/foot-parent/foot-core/common/utils"
utils2
"tesou.io/platform/foot-parent/foot-core/common/utils"
service2
"tesou.io/platform/foot-parent/foot-core/module/analy/service"
service2
"tesou.io/platform/foot-parent/foot-core/module/analy/service"
"tesou.io/platform/foot-parent/foot-core/module/leisu/constants"
"tesou.io/platform/foot-parent/foot-core/module/leisu/constants"
"tesou.io/platform/foot-parent/foot-core/module/leisu/service"
"tesou.io/platform/foot-parent/foot-core/module/leisu/service"
"tesou.io/platform/foot-parent/foot-core/module/leisu/utils"
"tesou.io/platform/foot-parent/foot-core/module/leisu/utils"
"tesou.io/platform/foot-parent/foot-spider/launch"
"time"
"time"
)
)
func
main
()
{
func
main
()
{
//测试获取比赛
launch
.
Spider_match
(
4
)
//测试获取配置
//测试获取配置
val
:=
utils2
.
GetVal
(
"cookies"
,
"Hm_lpvt_2fb6939e65e63cfbc1953f152ec2402e"
)
val
:=
utils2
.
GetVal
(
"cookies"
,
"Hm_lpvt_2fb6939e65e63cfbc1953f152ec2402e"
)
fmt
.
Println
(
val
)
fmt
.
Println
(
val
)
...
@@ -49,9 +52,9 @@ func main() {
...
@@ -49,9 +52,9 @@ func main() {
fmt
.
Println
(
time
.
Duration
(
int64
(
24
-
hours
)))
fmt
.
Println
(
time
.
Duration
(
int64
(
24
-
hours
)))
//测试分析结果获取及更新
//测试分析结果获取及更新
mysql
.
ShowSQL
(
true
)
analyService
:=
new
(
service2
.
AnalyService
)
analyService
:=
new
(
service2
.
AnalyService
)
list
:=
analyService
.
GetPubDataList
(
"Euro
81_616_104
Service"
,
0
,
-
1
)
list
:=
analyService
.
GetPubDataList
(
"Euro
20191206
Service"
,
0
,
-
1
)
result
:=
&
list
[
0
]
.
AnalyResult
result
:=
&
list
[
0
]
.
AnalyResult
analyService
.
Modify
(
result
)
analyService
.
Modify
(
result
)
...
...
FS001AsiaModifyApplication.go
浏览文件 @
dc836683
...
@@ -8,6 +8,6 @@ import (
...
@@ -8,6 +8,6 @@ import (
func
main
()
{
func
main
()
{
//开启SQL输出
//开启SQL输出
mysql
.
ShowSQL
(
true
)
launch
.
Spider_asiaLastNew
()
launch
.
Spider_asiaLastNew
()
}
}
FS001EuroIncompleteApplication.go
浏览文件 @
dc836683
...
@@ -9,7 +9,7 @@ import (
...
@@ -9,7 +9,7 @@ import (
//抓取欧赔数据少于两条的不完整的比赛
//抓取欧赔数据少于两条的不完整的比赛
func
main
()
{
func
main
()
{
//开启SQL输出
//开启SQL输出
mysql
.
ShowSQL
(
true
)
launch
.
Spider_euroHis_Incomplete
(
3
)
launch
.
Spider_euroHis_Incomplete
(
3
)
}
}
FS001EuroModifyApplication.go
浏览文件 @
dc836683
...
@@ -8,7 +8,7 @@ import (
...
@@ -8,7 +8,7 @@ import (
func
main
()
{
func
main
()
{
//开启SQL输出
//开启SQL输出
mysql
.
ShowSQL
(
true
)
launch
.
Spider_euroLast
()
launch
.
Spider_euroLast
()
launch
.
Spider_euroHis
()
launch
.
Spider_euroHis
()
}
}
conf/app.ini
浏览文件 @
dc836683
...
@@ -27,7 +27,7 @@ cycle_time=30
...
@@ -27,7 +27,7 @@ cycle_time=30
#示例0-3:-1,4-18:3,19-23:-1,未设置时间段为默认只推送3
#示例0-3:-1,4-18:3,19-23:-1,未设置时间段为默认只推送3
team_option
=
0-3:-1,4-18:3,19-23:3
team_option
=
0-3:-1,4-18:3,19-23:3
###使用的算法
###使用的算法
al_flag
=
Euro
616_104
Service
al_flag
=
Euro
20191212
Service
###处法命中次数
###处法命中次数
hit_count
=
3
hit_count
=
3
###标题模板,为空则使用默认模板.支持格式如下:
###标题模板,为空则使用默认模板.支持格式如下:
...
...
foot-core/common/base/service/mysql/BaseService.go
浏览文件 @
dc836683
...
@@ -48,7 +48,7 @@ func setEngine() *xorm.Engine {
...
@@ -48,7 +48,7 @@ func setEngine() *xorm.Engine {
//engine.ShowExecTime(true)
//engine.ShowExecTime(true)
//则会在控制台打印出生成的SQL语句
//则会在控制台打印出生成的SQL语句
//则会在控制台打印调试及以上的信息
//则会在控制台打印调试及以上的信息
//
engine.ShowSQL(true)
engine
.
ShowSQL
(
true
)
//engine.Logger().SetLevel(core.LOG_DEBUG)
//engine.Logger().SetLevel(core.LOG_DEBUG)
engine
.
SetMaxIdleConns
(
maxIdle
)
engine
.
SetMaxIdleConns
(
maxIdle
)
engine
.
SetMaxOpenConns
(
maxConn
)
engine
.
SetMaxOpenConns
(
maxConn
)
...
...
foot-core/launch/FC101DBInitApplication.go
浏览文件 @
dc836683
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
func
TruncateTable
()
{
func
TruncateTable
()
{
//开启SQL输出
//开启SQL输出
mysql
.
ShowSQL
(
true
)
opsService
:=
new
(
mysql
.
DBOpsService
)
opsService
:=
new
(
mysql
.
DBOpsService
)
//指定需要清空的数据表
//指定需要清空的数据表
opsService
.
TruncateTable
([]
string
{
"t_match_last"
,
"t_asia_last"
,
"t_euro_last"
,
"t_euro_his"
})
opsService
.
TruncateTable
([]
string
{
"t_match_last"
,
"t_asia_last"
,
"t_euro_last"
,
"t_euro_his"
})
...
@@ -15,7 +15,7 @@ func TruncateTable() {
...
@@ -15,7 +15,7 @@ func TruncateTable() {
func
GenTable
()
{
func
GenTable
()
{
//开启SQL输出
//开启SQL输出
mysql
.
ShowSQL
(
true
)
generateService
:=
new
(
mysql
.
DBOpsService
)
generateService
:=
new
(
mysql
.
DBOpsService
)
generateService
.
SyncTableStruct
()
generateService
.
SyncTableStruct
()
}
}
foot-core/launch/FC200AnalyApplication.go
浏览文件 @
dc836683
...
@@ -11,22 +11,23 @@ func Analy() {
...
@@ -11,22 +11,23 @@ func Analy() {
//关闭SQL输出
//关闭SQL输出
mysql
.
ShowSQL
(
false
)
mysql
.
ShowSQL
(
false
)
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
base
.
Log
.
Info
(
"----------------Euro
616_104
Service-------------------"
)
base
.
Log
.
Info
(
"----------------Euro
20191212
Service-------------------"
)
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
euro616_104Service
:=
new
(
service
.
Euro
616_104
Service
)
euro616_104Service
:=
new
(
service
.
Euro
20191212
Service
)
euro616_104Service
.
MaxLetBall
=
0.5
euro616_104Service
.
MaxLetBall
=
0.5
euro616_104Service
.
PrintOddData
=
false
euro616_104Service
.
PrintOddData
=
false
euro616_104Service
.
Analy
()
euro616_104Service
.
Analy
()
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
base
.
Log
.
Info
(
"----------------Euro
81_616_104
Service-------------------"
)
base
.
Log
.
Info
(
"----------------Euro
20191206
Service-------------------"
)
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
euro_81_616Service
:=
new
(
service
.
Euro
81_616_104
Service
)
euro_81_616Service
:=
new
(
service
.
Euro
20191206
Service
)
euro_81_616Service
.
MaxLetBall
=
0.75
euro_81_616Service
.
MaxLetBall
=
0.75
euro_81_616Service
.
PrintOddData
=
false
euro_81_616Service
.
PrintOddData
=
false
euro_81_616Service
.
Analy
()
euro_81_616Service
.
Analy
()
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
base
.
Log
.
Info
(
"---------------Asia
18EuroUDReverse
Service--------------"
)
base
.
Log
.
Info
(
"---------------Asia
20191206
Service--------------"
)
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
base
.
Log
.
Info
(
"---------------------------------------------------------------"
)
euro81616Service
:=
new
(
service
.
Asia
18EuroUDReverse
Service
)
euro81616Service
:=
new
(
service
.
Asia
20191206
Service
)
euro81616Service
.
Analy
()
euro81616Service
.
Analy
()
mysql
.
ShowSQL
(
true
)
}
}
foot-core/module/analy/service/Asia
18EuroUDReverse
Service.go
→
foot-core/module/analy/service/Asia
20191206
Service.go
浏览文件 @
dc836683
...
@@ -12,7 +12,7 @@ import (
...
@@ -12,7 +12,7 @@ import (
/**
/**
亚赔与欧赔up down 颠倒
亚赔与欧赔up down 颠倒
*/
*/
type
Asia
18EuroUDReverse
Service
struct
{
type
Asia
20191206
Service
struct
{
AnalyService
AnalyService
//最大让球数据
//最大让球数据
MaxLetBall
float64
MaxLetBall
float64
...
@@ -23,7 +23,7 @@ type Asia18EuroUDReverseService struct {
...
@@ -23,7 +23,7 @@ type Asia18EuroUDReverseService struct {
( 1.欧赔降水,亚赔反之,以亚赔为准)
( 1.欧赔降水,亚赔反之,以亚赔为准)
( 2.欧赔升水,亚赔反之,以亚赔为准)
( 2.欧赔升水,亚赔反之,以亚赔为准)
*/
*/
func
(
this
*
Asia
18EuroUDReverse
Service
)
Analy
()
{
func
(
this
*
Asia
20191206
Service
)
Analy
()
{
matchList
:=
this
.
MatchLastService
.
FindAll
()
matchList
:=
this
.
MatchLastService
.
FindAll
()
data_list_slice
:=
make
([]
interface
{},
0
)
data_list_slice
:=
make
([]
interface
{},
0
)
data_modify_list_slice
:=
make
([]
interface
{},
0
)
data_modify_list_slice
:=
make
([]
interface
{},
0
)
...
@@ -47,7 +47,7 @@ func (this *Asia18EuroUDReverseService) Analy() {
...
@@ -47,7 +47,7 @@ func (this *Asia18EuroUDReverseService) Analy() {
this
.
AnalyService
.
ModifyList
(
data_modify_list_slice
)
this
.
AnalyService
.
ModifyList
(
data_modify_list_slice
)
}
}
func
(
this
*
Asia
18EuroUDReverse
Service
)
analyStub
(
v
*
pojo
.
MatchLast
)
(
int
,
*
entity5
.
AnalyResult
)
{
func
(
this
*
Asia
20191206
Service
)
analyStub
(
v
*
pojo
.
MatchLast
)
(
int
,
*
entity5
.
AnalyResult
)
{
matchId
:=
v
.
Id
matchId
:=
v
.
Id
//声明使用变量
//声明使用变量
var
e81data
*
entity3
.
EuroLast
var
e81data
*
entity3
.
EuroLast
...
...
foot-core/module/analy/service/Euro
81_616_104
Service.go
→
foot-core/module/analy/service/Euro
20191206
Service.go
浏览文件 @
dc836683
...
@@ -10,7 +10,7 @@ import (
...
@@ -10,7 +10,7 @@ import (
"time"
"time"
)
)
type
Euro
81_616_104
Service
struct
{
type
Euro
20191206
Service
struct
{
AnalyService
AnalyService
//最大让球数据
//最大让球数据
MaxLetBall
float64
MaxLetBall
float64
...
@@ -19,7 +19,7 @@ type Euro81_616_104Service struct {
...
@@ -19,7 +19,7 @@ type Euro81_616_104Service struct {
/**
/**
计算欧赔81 616的即时盘,和初盘的差异
计算欧赔81 616的即时盘,和初盘的差异
*/
*/
func
(
this
*
Euro
81_616_104
Service
)
Analy
()
{
func
(
this
*
Euro
20191206
Service
)
Analy
()
{
matchList
:=
this
.
MatchLastService
.
FindAll
()
matchList
:=
this
.
MatchLastService
.
FindAll
()
data_list_slice
:=
make
([]
interface
{},
0
)
data_list_slice
:=
make
([]
interface
{},
0
)
data_modify_list_slice
:=
make
([]
interface
{},
0
)
data_modify_list_slice
:=
make
([]
interface
{},
0
)
...
@@ -45,7 +45,7 @@ func (this *Euro81_616_104Service) Analy() {
...
@@ -45,7 +45,7 @@ func (this *Euro81_616_104Service) Analy() {
}
}
func
(
this
*
Euro
81_616_104
Service
)
analyStub
(
v
*
pojo
.
MatchLast
)
(
int
,
*
entity5
.
AnalyResult
)
{
func
(
this
*
Euro
20191206
Service
)
analyStub
(
v
*
pojo
.
MatchLast
)
(
int
,
*
entity5
.
AnalyResult
)
{
matchId
:=
v
.
Id
matchId
:=
v
.
Id
//声明使用变量
//声明使用变量
var
e81data
*
entity3
.
EuroLast
var
e81data
*
entity3
.
EuroLast
...
...
foot-core/module/analy/service/Euro
616_104
Service.go
→
foot-core/module/analy/service/Euro
20191212
Service.go
浏览文件 @
dc836683
...
@@ -10,7 +10,7 @@ import (
...
@@ -10,7 +10,7 @@ import (
"time"
"time"
)
)
type
Euro
616_104
Service
struct
{
type
Euro
20191212
Service
struct
{
AnalyService
AnalyService
//最大让球数据
//最大让球数据
MaxLetBall
float64
MaxLetBall
float64
...
@@ -19,7 +19,7 @@ type Euro616_104Service struct {
...
@@ -19,7 +19,7 @@ type Euro616_104Service struct {
/**
/**
计算欧赔81 616的即时盘,和初盘的差异
计算欧赔81 616的即时盘,和初盘的差异
*/
*/
func
(
this
*
Euro
616_104
Service
)
Analy
()
{
func
(
this
*
Euro
20191212
Service
)
Analy
()
{
matchList
:=
this
.
MatchLastService
.
FindAll
()
matchList
:=
this
.
MatchLastService
.
FindAll
()
data_list_slice
:=
make
([]
interface
{},
0
)
data_list_slice
:=
make
([]
interface
{},
0
)
data_modify_list_slice
:=
make
([]
interface
{},
0
)
data_modify_list_slice
:=
make
([]
interface
{},
0
)
...
@@ -45,7 +45,7 @@ func (this *Euro616_104Service) Analy() {
...
@@ -45,7 +45,7 @@ func (this *Euro616_104Service) Analy() {
}
}
func
(
this
*
Euro
616_104
Service
)
analyStub
(
v
*
pojo
.
MatchLast
)
(
int
,
*
entity5
.
AnalyResult
)
{
func
(
this
*
Euro
20191212
Service
)
analyStub
(
v
*
pojo
.
MatchLast
)
(
int
,
*
entity5
.
AnalyResult
)
{
matchId
:=
v
.
Id
matchId
:=
v
.
Id
//声明使用变量
//声明使用变量
var
e616data
*
entity3
.
EuroLast
var
e616data
*
entity3
.
EuroLast
...
...
foot-core/module/match/service/MatchHisService.go
浏览文件 @
dc836683
package
service
package
service
import
"tesou.io/platform/foot-parent/foot-core/common/base/service/mysql"
import
(
"tesou.io/platform/foot-parent/foot-api/common/base"
"tesou.io/platform/foot-parent/foot-api/module/match/pojo"
"tesou.io/platform/foot-parent/foot-core/common/base/service/mysql"
)
type
MatchHisService
struct
{
type
MatchHisService
struct
{
mysql
.
BaseService
mysql
.
BaseService
}
}
func
(
this
*
MatchHisService
)
FindExists
(
v
*
pojo
.
MatchHis
)
bool
{
has
,
err
:=
mysql
.
GetEngine
()
.
Table
(
"`t_match_his`"
)
.
Where
(
" `Id` = ? "
,
v
.
Id
)
.
Exist
()
if
err
!=
nil
{
base
.
Log
.
Info
(
"FindExists"
,
err
)
}
return
has
}
foot-core/module/match/service/MatchLastService.go
浏览文件 @
dc836683
...
@@ -17,11 +17,11 @@ type MatchLastService struct {
...
@@ -17,11 +17,11 @@ type MatchLastService struct {
通过比赛时间,主队id,客队id,判断比赛信息是否已经存在
通过比赛时间,主队id,客队id,判断比赛信息是否已经存在
*/
*/
func
(
this
*
MatchLastService
)
FindExists
(
v
*
pojo
.
MatchLast
)
bool
{
func
(
this
*
MatchLastService
)
FindExists
(
v
*
pojo
.
MatchLast
)
bool
{
exist
,
err
:=
mysql
.
GetEngine
()
.
Exist
(
&
pojo
.
MatchLast
{
MatchDate
:
v
.
MatchDate
,
MainTeamId
:
v
.
MainTeamId
,
GuestTeamId
:
v
.
GuestTeamId
}
)
has
,
err
:=
mysql
.
GetEngine
()
.
Table
(
"`t_match_last`"
)
.
Where
(
" `Id` = ? "
,
v
.
Id
)
.
Exist
(
)
if
err
!=
nil
{
if
err
!=
nil
{
base
.
Log
.
Info
(
"FindExists
:
"
,
err
)
base
.
Log
.
Info
(
"FindExists"
,
err
)
}
}
return
exist
return
has
}
}
func
(
this
*
MatchLastService
)
FindAll
()
[]
*
pojo
.
MatchLast
{
func
(
this
*
MatchLastService
)
FindAll
()
[]
*
pojo
.
MatchLast
{
...
...
foot-spider/launch/FS101PortalApplication.go
浏览文件 @
dc836683
...
@@ -2,14 +2,13 @@ package launch
...
@@ -2,14 +2,13 @@ package launch
import
(
import
(
"strconv"
"strconv"
"tesou.io/platform/foot-parent/foot-core/common/base/service/mysql"
"tesou.io/platform/foot-parent/foot-core/common/utils"
"tesou.io/platform/foot-parent/foot-core/common/utils"
"tesou.io/platform/foot-parent/foot-core/launch"
"tesou.io/platform/foot-parent/foot-core/launch"
)
)
func
Spider
()
{
func
Spider
()
{
//开启SQL输出
//开启SQL输出
mysql
.
ShowSQL
(
true
)
//清空数据表
//清空数据表
launch
.
TruncateTable
()
launch
.
TruncateTable
()
Before_spider_match
()
Before_spider_match
()
...
...
foot-spider/module/win007/proc/MatchLastProcesser.go
浏览文件 @
dc836683
...
@@ -18,6 +18,7 @@ import (
...
@@ -18,6 +18,7 @@ import (
type
MatchPageProcesser
struct
{
type
MatchPageProcesser
struct
{
service
.
MatchLastService
service
.
MatchLastService
service
.
MatchHisService
service2
.
LeagueService
service2
.
LeagueService
service2
.
CompService
service2
.
CompService
//抓取的url
//抓取的url
...
@@ -192,15 +193,14 @@ func (this *MatchPageProcesser) Finish() {
...
@@ -192,15 +193,14 @@ func (this *MatchPageProcesser) Finish() {
this
.
LeagueService
.
SaveList
(
league_list_slice
)
this
.
LeagueService
.
SaveList
(
league_list_slice
)
matchLast_list_slice
:=
make
([]
interface
{},
0
)
matchLast_list_slice
:=
make
([]
interface
{},
0
)
matchLast_modify_list_slice
:=
make
([]
interface
{},
0
)
matchHis_list_slice
:=
make
([]
interface
{},
0
)
matchHis_modify_list_slice
:=
make
([]
interface
{},
0
)
for
_
,
v
:=
range
matchLast_list
{
for
_
,
v
:=
range
matchLast_list
{
if
nil
==
v
{
if
nil
==
v
{
continue
continue
}
}
exists
:=
this
.
MatchLastService
.
FindExists
(
v
)
if
exists
{
continue
}
//v.Id = v.Ext["win007Id"].(string);
//v.Id = v.Ext["win007Id"].(string);
//处理比赛配置信息
//处理比赛配置信息
...
@@ -212,8 +212,26 @@ func (this *MatchPageProcesser) Finish() {
...
@@ -212,8 +212,26 @@ func (this *MatchPageProcesser) Finish() {
matchExt
.
Sid
=
v
.
Id
matchExt
.
Sid
=
v
.
Id
v
.
Ext
=
make
(
map
[
string
]
interface
{})
v
.
Ext
=
make
(
map
[
string
]
interface
{})
v
.
Ext
[
win007
.
MODULE_FLAG
]
=
matchExt
v
.
Ext
[
win007
.
MODULE_FLAG
]
=
matchExt
matchLast_list_slice
=
append
(
matchLast_list_slice
,
v
)
exists
:=
this
.
MatchLastService
.
FindExists
(
v
)
if
exists
{
matchLast_modify_list_slice
=
append
(
matchLast_modify_list_slice
,
v
)
}
else
{
matchLast_list_slice
=
append
(
matchLast_list_slice
,
v
)
}
his
:=
new
(
pojo
.
MatchHis
)
his
.
MatchLast
=
*
v
his_exists
:=
this
.
MatchHisService
.
FindExists
(
his
)
if
his_exists
{
matchHis_modify_list_slice
=
append
(
matchHis_modify_list_slice
,
his
)
}
else
{
matchHis_list_slice
=
append
(
matchHis_list_slice
,
his
)
}
}
}
this
.
MatchLastService
.
SaveList
(
matchLast_list_slice
)
this
.
MatchLastService
.
SaveList
(
matchLast_list_slice
)
this
.
MatchLastService
.
ModifyList
(
matchLast_modify_list_slice
)
this
.
MatchHisService
.
SaveList
(
matchHis_list_slice
)
this
.
MatchHisService
.
ModifyList
(
matchHis_modify_list_slice
)
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录