|
|
@@ -28,9 +28,9 @@ class StZqOdds extends Model
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
- * 获取赛事下所有 不在本次请求的 赔率only 并 更新状态
|
|
|
+ * 更新赛事下赔率状态
|
|
|
*/
|
|
|
- public static function getMatchSole($model=[],$others_match_id='',$others_lg_id=[],$source='',$odds_only=[]){
|
|
|
+ public static function upOddsStatus($model=[],$others_match_id='',$others_lg_id=[],$source='',$odds_only=[]){
|
|
|
$where = [];
|
|
|
//普通 赔率
|
|
|
if(!empty($others_match_id) and !empty($source)){
|
|
|
@@ -49,7 +49,7 @@ class StZqOdds extends Model
|
|
|
//获取当前 赛事 所有 赔率only
|
|
|
$odds_data = $model['model_odds']::select('odds_only')
|
|
|
->whereIn('others_lg_id',$others_lg_id)
|
|
|
- ->where(['source','=',$source])
|
|
|
+ ->where('source',$source)
|
|
|
->get()
|
|
|
->toArray();
|
|
|
}
|
|
|
@@ -75,9 +75,8 @@ class StZqOdds extends Model
|
|
|
}
|
|
|
}
|
|
|
//批量更新 赔率状态
|
|
|
- $ds = $model['model_odds']::whereIn('odds_only', $only)
|
|
|
- ->update(['status' => -1]);
|
|
|
-
|
|
|
- if($ds > 0 ) return true;
|
|
|
+ $del = $model['model_odds']::whereIn('odds_only', $only)
|
|
|
+ ->delete();
|
|
|
+ if($del) return true;
|
|
|
}
|
|
|
}
|