|
|
@@ -265,7 +265,7 @@ class WriteSportsController extends BaseController{
|
|
|
'status'=>$data['status'],
|
|
|
'match_date'=>$data['match_date']?:date('Y-m-d'),
|
|
|
'match_time'=>$data['match_time']?:date('H:i:s'),
|
|
|
- 'tag'=>$data['tag']?:0,
|
|
|
+ // 'tag'=>$data['tag']?:0,
|
|
|
'is_rollball'=>$data['is_rollball']?:0,
|
|
|
'is_today'=>$data['is_today']?:0,
|
|
|
'is_morningplate'=>$data['is_morningplate']?:0,
|
|
|
@@ -442,6 +442,8 @@ class WriteSportsController extends BaseController{
|
|
|
$s_lg_id = $getData['lg_id'];
|
|
|
//获取源数据赛事ID
|
|
|
$s_match_id = $getData['match_id'];
|
|
|
+ //获取赔率所属赛事 tag 值 玩法数量
|
|
|
+ $tag = $getData['tag'];
|
|
|
|
|
|
//获取球类名称
|
|
|
$gameName = gameModel::getGameName($game_code);
|
|
|
@@ -450,6 +452,11 @@ class WriteSportsController extends BaseController{
|
|
|
$lg_id = $this->leagueVerify($models,$s_lg_id,$source,$gameName);
|
|
|
$match_id = $this->matchVerify($models,$s_match_id,$source,$gameName);
|
|
|
|
|
|
+ //更新赛事 tag 值
|
|
|
+ $upMatch = $models['model_match']::where(['id'=>$match_id])
|
|
|
+ ->update(['tag'=>$tag,'utime'=>date('Y-m-d H:i:s')]);
|
|
|
+ if($upMatch < 1) throw new \Exception(Response::generate($gameName.'赛事-match_id:'.$s_match_id.';',Response::UPMATCHTAG_ERROR)) ;
|
|
|
+
|
|
|
//获取 赔率数据
|
|
|
$oddsData = $getData['data'];
|
|
|
if(!empty($oddsData)){
|
|
|
@@ -1379,7 +1386,7 @@ class WriteSportsController extends BaseController{
|
|
|
"match_winer"=> $data['match_winer']?:'',
|
|
|
"match_time"=> $data['match_time']?:0,
|
|
|
"match_process"=> $data['match_process']?:'',
|
|
|
- "tag"=> $data['tag']?:0,
|
|
|
+ // "tag"=> $data['tag']?:0,
|
|
|
"match_id"=> $match_id,
|
|
|
"update_time"=>date('Y-m-d H:i:s')
|
|
|
];
|
|
|
@@ -1400,7 +1407,7 @@ class WriteSportsController extends BaseController{
|
|
|
"match_winer"=> $data['match_winer']?:'',
|
|
|
"match_time"=> $data['match_time']?:0,
|
|
|
"match_process"=> $data['match_process']?:'',
|
|
|
- "tag"=> $data['tag']?:0,
|
|
|
+ // "tag"=> $data['tag']?:0,
|
|
|
"match_id"=> $match_id,
|
|
|
"update_time"=>date('Y-m-d H:i:s')
|
|
|
];
|
|
|
@@ -1427,7 +1434,7 @@ class WriteSportsController extends BaseController{
|
|
|
"update_time"=>date('Y-m-d H:i:s'),
|
|
|
"match_time"=>$data['match_time']?:0,
|
|
|
"match_process"=>$data['match_process']?:'',
|
|
|
- "tag"=>$data['tag']?:0,
|
|
|
+ // "tag"=>$data['tag']?:0,
|
|
|
"match_id"=>$match_id,
|
|
|
"result_mark" =>$data['result_mark']?:'',
|
|
|
];
|
|
|
@@ -1448,7 +1455,7 @@ class WriteSportsController extends BaseController{
|
|
|
"match_winer"=> $data['match_winer']?:'',
|
|
|
"match_time"=> $data['match_time']?:0,
|
|
|
"match_process"=> $data['match_process']?:'',
|
|
|
- "tag"=> $data['tag']?:0,
|
|
|
+ // "tag"=> $data['tag']?:0,
|
|
|
"match_id"=> $match_id,
|
|
|
"all_inning"=>$data['all_inning']?:9,
|
|
|
"update_time"=>date('Y-m-d H:i:s'),
|