|
@@ -51,9 +51,23 @@ class ResultMatch extends Controller{
|
|
|
->get()
|
|
->get()
|
|
|
->toArray();
|
|
->toArray();
|
|
|
|
|
|
|
|
|
|
+ //获取各球类查询字段
|
|
|
|
|
+ if($game_code == 'zq'){
|
|
|
|
|
+ $select = ['league_id','league_name','match_date','match_time','home_team','guest_team','score_half','score_full','play_data','c_time','source','match_id'];
|
|
|
|
|
+ }
|
|
|
|
|
+ if($game_code == 'lq'){
|
|
|
|
|
+ $select = ['league_id','league_name','match_date','match_time','home_team','guest_team','score_half','score_below','score_result','play_data','c_time','source','match_id'];
|
|
|
|
|
+ }
|
|
|
|
|
+ if($game_code == 'wq'){
|
|
|
|
|
+ $select = ['league_id','league_name','match_date','match_time','home_team','guest_team','score_half','score_full','score_result','play_data','c_time','source','match_id'];
|
|
|
|
|
+ }
|
|
|
|
|
+ if($game_code == 'bq'){
|
|
|
|
|
+ $select = ['league_id','league_name','match_date','match_time','home_team','guest_team','score_half','score_full','score_result','play_data','c_time','source','match_id'];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//获取赛事数据
|
|
//获取赛事数据
|
|
|
$match_result_match = lm($model_result_express,"Sports")
|
|
$match_result_match = lm($model_result_express,"Sports")
|
|
|
- ->select('league_id','league_name','match_date','match_time','home_team','guest_team','score_half','score_full','play_data','c_time','source','match_id')
|
|
|
|
|
|
|
+ ->select($select)
|
|
|
->where($where)
|
|
->where($where)
|
|
|
->get()
|
|
->get()
|
|
|
->toArray();
|
|
->toArray();
|