|
|
@@ -543,7 +543,6 @@ class MatchList extends Controller {
|
|
|
$matchData->match_score = '';//赛事比分
|
|
|
$matchData->result_mark = '';//赛事实时数据json
|
|
|
|
|
|
-
|
|
|
//通过开赛日期和时间判断是否是进行中滚球
|
|
|
if($matchData->status < 2 and $matchData->match_date == date("Y-m-d") and $matchData->match_time > date("H:i:s", time()-(90*60)) and $matchData->match_time < date("H:i:s", time())){
|
|
|
$matchData->status = 1;
|
|
|
@@ -554,9 +553,9 @@ class MatchList extends Controller {
|
|
|
$result_record = $models['model_result_record'];
|
|
|
$match_id = $matchData->match_id;
|
|
|
//如果是棒球
|
|
|
- if($result_record == 'st_bq_result_record'){
|
|
|
+ if($result_record == 'st_bq_result_record' || $result_record == 'st_lq_result_record'){
|
|
|
$sql = "select a.match_id,a.home_score,a.guest_score,a.match_time as a_time,a.match_process,a.result_mark from $result_record a,
|
|
|
-(select match_id,max(id) id from $result_record where match_id = $match_id group by match_id)b
|
|
|
+(select match_id,max(id) id from $result_record where match_id =$match_id group by match_id)b
|
|
|
where a.match_id = b.match_id and a.id = b.id ";
|
|
|
|
|
|
//查询 赛事结果记录最新的一条
|