提交 80f51f8d 编写于 作者: M monomania

1.增加作者声明 2.leisu标题,内容多化样开发

上级 2a540c27
本次推荐为程序全自动处理,全程无人为参与干预.进而避免了人为分析的主观性及不稳定因素.程序根据各大波菜多维度数据,结合作者多年足球分析经验,十年程序员生涯,精雕细琢历经26个月得出的产物.程序执行流程包括且不仅限于(数据自动获取-->分析学习-->自动推送发布).经近三个月的实验准确率一直能维持在一个较高的水平.依据该项目为依托已经吸引了不少朋友,现目前通过雷速号再次验证程序的准确率,望大家长期关注校验.
\ No newline at end of file
......@@ -14,7 +14,7 @@ LWT=KBjo3NZHBCcMfcnaZ1JXVula6ZKdmthk0DqnddpGOcwxb/d/nr2ULipCnjSsetvzCgwBKwkj7nBL
SERVERID=f35c9b1c268fcc8b58043d36d0dddd26|1575817686|1575815177
[spider]
###matchLevel比赛级别 //0全部,1一级,2足彩,3竞猜,4单场
match_level=0
match_level=4
###执行周期间隔时间
cycle_time=68
[analy]
......@@ -50,4 +50,6 @@ OriId=gh_a8328f3c25d2
AppID=wx76e3dd0445aa0055
AppSecret=4257a40eb6f59e50777fdcc2b47b31a4
Token=cc9dfaa76d534c60bafa9fd947a049dd
#EncodingAESKey=1upqonqsdMpQFP1ltHp5eBdCMvmVR26QBP8KJ60pM7D
\ No newline at end of file
#EncodingAESKey=1upqonqsdMpQFP1ltHp5eBdCMvmVR26QBP8KJ60pM7D
###文章作者
author=AI足球
\ No newline at end of file
......@@ -93,8 +93,9 @@ WHERE ar.MatchDate < NOW()
}
for _, e := range entitys {
aList := this.AsiaLastService.FindByMatchIdCompId(e.MatchId, "18Bet")
if len(aList) < 1 {
continue
if nil == aList || len(aList) < 1 {
aList = make([]*entity3.AsiaLast,1)
aList[0] = new(entity3.AsiaLast)
}
his := this.MatchHisService.FindById(e.MatchId)
if nil == his {
......
......@@ -11,6 +11,7 @@ import (
"tesou.io/platform/foot-parent/foot-api/common/base"
"tesou.io/platform/foot-parent/foot-api/module/suggest/vo"
"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/module/analy/service"
service2 "tesou.io/platform/foot-parent/foot-core/module/suggest/service"
"time"
......@@ -65,6 +66,8 @@ func (this *MatchService) ModifyToday(wcClient *core.Client) {
first.Title = fmt.Sprintf("今日推荐 %v", time.Now().Format("01月02日"))
first.Digest = fmt.Sprintf("%d场赛事", len(tempList))
first.ThumbMediaId = "chP-LBQxy9SVbAFjwZ4QEuxc8rI6Dy-bm5n3yZbsuJA"
first.ContentSourceURL = "https://gitee.com/aoe5188/poem-parent"
first.Author = utils.GetVal("wechat","author")
todayVO := vo.TodayVO{}
todayVO.DataList = make([]vo.SuggestVO, len(tempList))
......@@ -96,6 +99,7 @@ func (this *MatchService) Week(wcClient *core.Client) string {
first.Title = "最近七天战绩"
first.Digest = "20191216-20191219"
first.ThumbMediaId = "chP-LBQxy9SVbAFjwZ4QEo81I0bHaY3YDYRwVGmf7o8"
var first_content string
for _, e := range listData {
bytes, _ := json.Marshal(e)
......@@ -121,6 +125,7 @@ func (this *MatchService) ModifyWeek(wcClient *core.Client) {
h168, _ := time.ParseDuration("-168h")
beginDate := now.Add(h168)
param.BeginDateStr = beginDate.Format("2006-01-02 15:04:05")
param.IsDesc = true
//今日推荐
tempList := this.SuggestService.Query(param)
//更新推送
......@@ -130,7 +135,7 @@ func (this *MatchService) ModifyWeek(wcClient *core.Client) {
first.ThumbMediaId = "chP-LBQxy9SVbAFjwZ4QEo81I0bHaY3YDYRwVGmf7o8"
first.ShowCoverPic = 0
first.ContentSourceURL = "https://gitee.com/aoe5188/poem-parent"
first.Author = utils.GetVal("wechat","author")
temp := vo.WeekVO{}
temp.BeginDateStr = param.BeginDateStr
temp.EndDateStr = param.EndDateStr
......@@ -216,6 +221,7 @@ func (this *MatchService) ModifyMonth(wcClient *core.Client) {
h168, _ := time.ParseDuration("-720h")
beginDate := now.Add(h168)
param.BeginDateStr = beginDate.Format("2006-01-02 15:04:05")
param.IsDesc = true
//今日推荐
tempList := this.SuggestService.Query(param)
//更新推送
......@@ -223,6 +229,8 @@ func (this *MatchService) ModifyMonth(wcClient *core.Client) {
first.Title = "最近一月战绩"
first.Digest = fmt.Sprintf("%v-%v", beginDate.Format("2006年01月02日"), now.Format("2006年01月02日"))
first.ThumbMediaId = "chP-LBQxy9SVbAFjwZ4QEo81I0bHaY3YDYRwVGmf7o8"
first.ContentSourceURL = "https://gitee.com/aoe5188/poem-parent"
first.Author = utils.GetVal("wechat","author")
temp := vo.WeekVO{}
temp.BeginDateStr = param.BeginDateStr
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册