|
|
@@ -128,7 +128,7 @@ class SportOdds extends Command
|
|
|
$odd_fixture_status = null;//直播赔率中的赛事时间和状态(与直播赛事信息中的赛事时间和状态存在较大差异)
|
|
|
if (isset($item['fixture']['status']['long']) ) {
|
|
|
$long = $item['fixture']['status']['long'];
|
|
|
- if (isset($this->fixture_status[$long])) {
|
|
|
+ // if (isset($this->fixture_status[$long])) {
|
|
|
|
|
|
$sport_info = SportModel::where('data_id',$data_id)->first();
|
|
|
$fixture_status = $sport_info['fixture_status'] ? json_decode($sport_info['fixture_status'],true) : [];
|
|
|
@@ -139,27 +139,18 @@ class SportOdds extends Command
|
|
|
//如果时间差距超过3分钟,则锁盘
|
|
|
if (isset($fixture_status['elapsed']) && isset($odd_fixture_status['elapsed'])) {
|
|
|
if ( $fixture_status['elapsed'] - $odd_fixture_status['elapsed'] >= 3) {
|
|
|
- $odds = $sport_info['odds'] ? json_decode($sport_info['odds'],true) : null;
|
|
|
- $odds_ids = [];
|
|
|
- foreach($odds as $odd) {
|
|
|
- $odds_ids[] = $odd['id'];
|
|
|
- }
|
|
|
- $update_data['error'] = 1;
|
|
|
- $update_data['is_locked'] = 1;
|
|
|
+
|
|
|
+ $update_data['error'] = 1; //异常
|
|
|
+ $update_data['is_locked'] = 1; //锁盘
|
|
|
unset($update_data['odds']);//不更新赔率
|
|
|
} else {
|
|
|
$update_data['error'] = 0;
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+
|
|
|
+ // }
|
|
|
|
|
|
- // if (isset($this->long_status[$long])) {
|
|
|
- // $update_data['state'] = $this->long_status[$long];
|
|
|
- // }
|
|
|
}
|
|
|
- // if (isset($item['teams']['home']['goals'])) {
|
|
|
- // $update_data['score'] = $item['teams']['home']['goals'] ."-". $item['teams']['away']['goals'];
|
|
|
- // }
|
|
|
|
|
|
//锁盘
|
|
|
if (isset($item['fixture']['status']['blocked']) && $item['fixture']['status']['blocked']) {
|