|
|
@@ -101,6 +101,7 @@ class GetOddsData {
|
|
|
->select('match_id','id','p_code','odds_code','status','odds','condition','sort','odds_only')
|
|
|
->whereIn('match_id',$match_ids)
|
|
|
->where(['status'=>0])
|
|
|
+ ->where($oddsTypeWhere)
|
|
|
->where(
|
|
|
function($query)use ($model_odds){
|
|
|
$query->where($model_odds.'.odds_code','concede_home')
|
|
|
@@ -149,6 +150,7 @@ class GetOddsData {
|
|
|
->select('match_id','id','p_code','odds_code','status','odds','condition','sort','odds_only')
|
|
|
->whereIn('match_id',$match_ids)
|
|
|
->where(['status'=>0])
|
|
|
+ ->where($oddsTypeWhere)
|
|
|
->where(
|
|
|
function($query)use ($model_odds){
|
|
|
$query->where($model_odds.'.odds_code','concede_home')
|
|
|
@@ -197,6 +199,7 @@ class GetOddsData {
|
|
|
->select('match_id','id','p_code','odds_code','status','odds','condition','sort','odds_only')
|
|
|
->whereIn('match_id',$match_ids)
|
|
|
->where(['status'=>0])
|
|
|
+ ->where($oddsTypeWhere)
|
|
|
->where(
|
|
|
function($query)use ($model_odds){
|
|
|
$query->where($model_odds.'.odds_code','dishes_home')
|
|
|
@@ -244,6 +247,7 @@ class GetOddsData {
|
|
|
->select('match_id','id','p_code','odds_code','status','odds','condition','sort','odds_only')
|
|
|
->whereIn('match_id',$match_ids)
|
|
|
->where(['status'=>0])
|
|
|
+ ->where($oddsTypeWhere)
|
|
|
->where(
|
|
|
function($query)use ($model_odds){
|
|
|
$query->where($model_odds.'.odds_code','capot_home')
|