|
|
@@ -24,14 +24,17 @@ class RollingBall extends Controller{
|
|
|
|
|
|
$model_result = $models['model_result'];
|
|
|
$model_match = $models['model_match'];
|
|
|
+ $model_league = $models['model_league'];
|
|
|
|
|
|
//获取 滚球查询条件
|
|
|
$where = $this->commonFunction->getState('StRollBall',$model_match);
|
|
|
|
|
|
$result =lm($model_match,"Sports")
|
|
|
->join($model_result,$model_result.'.match_id',$model_match.'.match_id')
|
|
|
+ ->join($model_league,$model_league.'.lg_id',$model_match.'.lg_id')
|
|
|
->select($model_match.'.match_id',$model_match.'.tag','match_date as start_date',$model_match.'.match_time as start_time',$model_match.'.home_team',$model_match.'.guest_team','home_score','guest_score',$model_result.'.match_time','match_process')
|
|
|
->where($model_match.'.source',$this->source['source'])
|
|
|
+ ->where([[$model_league.'.name_chinese','!=','']])
|
|
|
->where($where)
|
|
|
->get()
|
|
|
->toarray();
|
|
|
@@ -56,14 +59,16 @@ class RollingBall extends Controller{
|
|
|
|
|
|
$model_result = $models['model_result'];
|
|
|
$model_match = $models['model_match'];
|
|
|
-
|
|
|
+ $model_league = $models['model_league'];
|
|
|
//获取 滚球查询条件
|
|
|
$where = $this->commonFunction->getState('StRollBall',$model_match);
|
|
|
$result =lm($model_match,"Sports")
|
|
|
->join($model_result,$model_result.'.match_id',$model_match.'.match_id')
|
|
|
+ ->join($model_league,$model_league.'.lg_id',$model_match.'.lg_id')
|
|
|
->select($model_match.'.match_id',$model_match.'.tag','match_date as start_date',$model_match.'.match_time as start_time',$model_match.'.home_team',$model_match.'.guest_team','home_score','guest_score',$model_result.'.match_time','match_process')
|
|
|
->where($model_match.'.source',$this->source['source'])
|
|
|
->where($where)
|
|
|
+ ->where([[$model_league.'.name_chinese','!=','']])
|
|
|
->get()
|
|
|
->toarray();
|
|
|
|
|
|
@@ -81,14 +86,16 @@ class RollingBall extends Controller{
|
|
|
|
|
|
$model_result = $models['model_result'];
|
|
|
$model_match = $models['model_match'];
|
|
|
-
|
|
|
+ $model_league = $models['model_league'];
|
|
|
//获取 滚球查询条件
|
|
|
$where = $this->commonFunction->getState('StRollBall',$model_match);
|
|
|
$result =lm($model_match,"Sports")
|
|
|
->join($model_result,$model_result.'.match_id',$model_match.'.match_id')
|
|
|
+ ->join($model_league,$model_league.'.lg_id',$model_match.'.lg_id')
|
|
|
->select($model_match.'.match_id',$model_match.'.tag','match_date as start_date',$model_match.'.match_time as start_time','home_player_name','guest_player_name','first_inning_score','second_inning_score','third_inning_score',$model_result.'.match_time','match_process')
|
|
|
->where($model_match.'.source',$this->source['source'])
|
|
|
->where($where)
|
|
|
+ ->where([[$model_league.'.name_chinese','!=','']])
|
|
|
->get()
|
|
|
->toarray();
|
|
|
|
|
|
@@ -106,14 +113,16 @@ class RollingBall extends Controller{
|
|
|
|
|
|
$model_result = $models['model_result'];
|
|
|
$model_match = $models['model_match'];
|
|
|
-
|
|
|
+ $model_league = $models['model_league'];
|
|
|
//获取 滚球查询条件
|
|
|
$where = $this->commonFunction->getState('StRollBall',$model_match);
|
|
|
$result =lm($model_match,"Sports")
|
|
|
->join($model_result,$model_result.'.match_id',$model_match.'.match_id')
|
|
|
+ ->join($model_league,$model_league.'.lg_id',$model_match.'.lg_id')
|
|
|
->select($model_match.'.match_id',$model_match.'.tag','match_date as start_date',$model_match.'.match_time as start_time',$model_match.'.home_team',$model_match.'.guest_team','home_score','guest_score',$model_result.'.match_time','match_process')
|
|
|
->where($model_match.'.source',$this->source['source'])
|
|
|
->where($where)
|
|
|
+ ->where([[$model_league.'.name_chinese','!=','']])
|
|
|
->get()
|
|
|
->toarray();
|
|
|
|