|
|
@@ -318,32 +318,21 @@ trait RulePlus
|
|
|
$goalhlefnum = intval($resultModels->u_home_score)+intval($resultModels->u_guest_score);
|
|
|
|
|
|
if($model->odds_code == $type){
|
|
|
- if($goalnum != 0){
|
|
|
+ if($goalnum != 0)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($goalnum == 0){
|
|
|
+ if($goalnum == 0)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($goalhlefnum != 0){
|
|
|
+ if($goalhlefnum != 0)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($goalhlefnum == 0){
|
|
|
+ if($goalhlefnum == 0)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else{
|
|
|
return ['result' => 100,'matchResult' => "参数不存在"];
|
|
|
}
|
|
|
+ return ['result' => -1, 'matchResult' => $allword];
|
|
|
}
|
|
|
|
|
|
//独赢&进球大小 sw_MOU
|
|
|
@@ -357,158 +346,84 @@ trait RulePlus
|
|
|
$guest = intval($resultModels->guest_score);
|
|
|
|
|
|
if($model->odds_code == $type){
|
|
|
- if($homeda > 1.5){
|
|
|
+ if($homeda > 1.5)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 1.5){
|
|
|
+ if($homexiao > 1.5)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($guestda > 1.5){
|
|
|
+ if($guestda > 1.5)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allt > 1.5 && $home==$guest){
|
|
|
+ if($allt > 1.5 && $home==$guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($home == $guest && $allt < 1.5){
|
|
|
+ if($home == $guest && $allt < 1.5)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 2.5){
|
|
|
+ if($homeda > 2.5)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 2.5){
|
|
|
+ if($homexiao > 2.5)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($guestda > 2.5){
|
|
|
+ if($guestda > 2.5)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 2.5){
|
|
|
+ if($homexiao > 2.5)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allt > 2.5 && $home==$guest){
|
|
|
+ if($allt > 2.5 && $home==$guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allt < 2.5 && $home==$guest){
|
|
|
+ if($allt < 2.5 && $home==$guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allt < 2.5 && $home==$guest){
|
|
|
+ if($allt < 2.5 && $home==$guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 3.5 ){
|
|
|
+ if($homeda > 3.5 )
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 3.5 ){
|
|
|
+ if($homexiao > 3.5 )
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($guestda > 3.5 ){
|
|
|
+ if($guestda > 3.5 )
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($guestxiao > 3.5 ){
|
|
|
+ if($guestxiao > 3.5 )
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allt > 3.5 && $home==$guest){
|
|
|
+ if($allt > 3.5 && $home==$guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allt < 3.5 && $home==$guest){
|
|
|
+ if($allt < 3.5 && $home==$guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 4.5){
|
|
|
+ if($homeda > 4.5)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 4.5){
|
|
|
+ if($homexiao > 4.5)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($guestda > 4.5){
|
|
|
+ if($guestda > 4.5)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($guestxiao > 4.5){
|
|
|
+ if($guestxiao > 4.5)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allt > 4.5 && $home == $guest){
|
|
|
+ if($allt > 4.5 && $home == $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allt < 4.5 && $home == $guest){
|
|
|
+ if($allt < 4.5 && $home == $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($guestxiao > 1.5 ){
|
|
|
+ if($guestxiao > 1.5 )
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else{
|
|
|
return ['result' => 100,'matchResult' => "参数不存在"];
|
|
|
}
|
|
|
+ return ['result' => -1, 'matchResult' => $allword];
|
|
|
}
|
|
|
|
|
|
//判断 独赢&双方球队进球 是--进球 否--没进球 sw_MTS
|
|
|
@@ -517,44 +432,27 @@ trait RulePlus
|
|
|
$guest = intval($resultModels->guest_score);
|
|
|
|
|
|
if($model->odds_code == $type){
|
|
|
- if($home != 0){
|
|
|
+ if($home != 0)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($home == 0){
|
|
|
+ if($home == 0)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($guest != 0){
|
|
|
+ if($guest != 0)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($guest == 0){
|
|
|
+ if($guest == 0)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($home == $guest){
|
|
|
+ if($home == $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($home != $guest){
|
|
|
+ if($home != $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else{
|
|
|
return ['result' => 100,'matchResult' => "参数不存在"];
|
|
|
}
|
|
|
+ return ['result' => -1, 'matchResult' => $allword];
|
|
|
}
|
|
|
|
|
|
//判断 进球大/小&双方球队进球 sw_OUT
|
|
|
@@ -565,44 +463,27 @@ trait RulePlus
|
|
|
$guestxiao = intval($resultModels->home_score)-intval($resultModels->guest_score);//客队小
|
|
|
|
|
|
if($model->odds_code == $type){
|
|
|
- if($homeda > 1.5){
|
|
|
+ if($homeda > 1.5)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($home == 0){
|
|
|
+ if($home == 0)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($guest != 0){
|
|
|
+ if($guest != 0)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($guest == 0){
|
|
|
+ if($guest == 0)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($home == $guest){
|
|
|
+ if($home == $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($home != $guest){
|
|
|
+ if($home != $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else{
|
|
|
return ['result' => 100,'matchResult' => "参数不存在"];
|
|
|
}
|
|
|
+ return ['result' => -1, 'matchResult' => $allword];
|
|
|
}
|
|
|
|
|
|
//独赢 & 最先进球 ??? sw_MPG
|
|
|
@@ -614,44 +495,27 @@ trait RulePlus
|
|
|
$guest = intval($resultModels->guest_score);//客队得分
|
|
|
|
|
|
if($model->odds_code == $type){
|
|
|
- if($firstscore == $homename && $home > $guest){
|
|
|
+ if($firstscore == $homename && $home > $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($firstscore == $guestname && $home > $guest){
|
|
|
+ if($firstscore == $guestname && $home > $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($firstscore == $homename && $home < $guest){
|
|
|
+ if($firstscore == $homename && $home < $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($firstscore == $guestname && $home < $guest){
|
|
|
+ if($firstscore == $guestname && $home < $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($firstscore == $homename && $home == $guest){
|
|
|
+ if($firstscore == $homename && $home == $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($firstscore == $guestname && $home == $guest){
|
|
|
+ if($firstscore == $guestname && $home == $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else{
|
|
|
return ['result' => 100,'matchResult' => "参数不存在"];
|
|
|
}
|
|
|
+ return ['result' => -1, 'matchResult' => $allword];
|
|
|
}
|
|
|
|
|
|
//首个进球方式 sw_FG
|
|
|
@@ -659,44 +523,27 @@ trait RulePlus
|
|
|
$firststye = json_decode($resultModels->first_score,true)['scoretype'];//最先进球
|
|
|
|
|
|
if($model->odds_code == $type){
|
|
|
- if($firststye == "射门"){
|
|
|
+ if($firststye == "射门")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($firststye == "头球"){
|
|
|
+ if($firststye == "头球")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($firststye == "无进球"){
|
|
|
+ if($firststye == "无进球")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($firststye == "点球"){
|
|
|
+ if($firststye == "点球")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($firststye == "任意球"){
|
|
|
+ if($firststye == "任意球")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($firststye == "乌龙球"){
|
|
|
+ if($firststye == "乌龙球")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else{
|
|
|
return ['result' => 100,'matchResult' => "参数不存在"];
|
|
|
}
|
|
|
+ return ['result' => -1, 'matchResult' => $allword];
|
|
|
}
|
|
|
|
|
|
//双重机会&进球大/小 sw_DU
|
|
|
@@ -706,152 +553,81 @@ trait RulePlus
|
|
|
$allscore = intval($resultModels->guest_score) + intval($resultModels->home_score);//客队得分
|
|
|
|
|
|
if($model->odds_code == $type){
|
|
|
- if($allscore > 1.5 && $homescore > $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore > 1.5 && $homescore > $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore < 1.5 && $homescore > $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore < 1.5 && $homescore > $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore > 1.5 && $homescore < $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore > 1.5 && $homescore < $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore > 1.5 && $homescore < $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore > 1.5 && $homescore < $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore > 1.5 && $homescore > $guestscore || $homescore < $guestscore){
|
|
|
+ if($allscore > 1.5 && $homescore > $guestscore || $homescore < $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore < 1.5 && $homescore > $guestscore || $homescore < $guestscore){
|
|
|
+ if($allscore < 1.5 && $homescore > $guestscore || $homescore < $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore > 2.5 && $homescore > $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore > 2.5 && $homescore > $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore < 2.5 && $homescore > $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore < 2.5 && $homescore > $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore > 2.5 && $homescore < $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore > 2.5 && $homescore < $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore < 2.5 && $homescore < $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore < 2.5 && $homescore < $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore > 2.5 && $homescore > $guestscore || $homescore < $guestscore){
|
|
|
+ if($allscore > 2.5 && $homescore > $guestscore || $homescore < $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore < 2.5 && $homescore > $guestscore || $homescore < $guestscore){
|
|
|
+ if($allscore < 2.5 && $homescore > $guestscore || $homescore < $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore > 3.5 && $homescore > $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore > 3.5 && $homescore > $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore < 3.5 && $homescore > $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore < 3.5 && $homescore > $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore > 3.5 && $homescore < $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore > 3.5 && $homescore < $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore < 3.5 && $homescore < $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore < 3.5 && $homescore < $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore > 3.5 && $homescore > $guestscore || $homescore < $guestscore){
|
|
|
+ if($allscore > 3.5 && $homescore > $guestscore || $homescore < $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore < 3.5 && $homescore > $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore < 3.5 && $homescore > $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore > 4.5 && $homescore > $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore > 4.5 && $homescore > $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore < 4.5 && $homescore > $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore < 4.5 && $homescore > $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore > 4.5 && $homescore < $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore > 4.5 && $homescore < $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore < 4.5 && $homescore < $guestscore || $homescore == $guestscore){
|
|
|
+ if($allscore < 4.5 && $homescore < $guestscore || $homescore == $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore > 4.5 && $homescore > $guestscore || $homescore < $guestscore){
|
|
|
+ if($allscore > 4.5 && $homescore > $guestscore || $homescore < $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($allscore < 4.5 && $homescore > $guestscore || $homescore < $guestscore){
|
|
|
+ if($allscore < 4.5 && $homescore > $guestscore || $homescore < $guestscore)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else{
|
|
|
return ['result' => 100,'matchResult' => "参数不存在"];
|
|
|
}
|
|
|
+ return ['result' => -1, 'matchResult' => $allword];
|
|
|
}
|
|
|
|
|
|
//双重机会&双方球队进球 sw_DS
|
|
|
@@ -933,44 +709,27 @@ trait RulePlus
|
|
|
$guestname = $resultModels->guest_team;//客队
|
|
|
|
|
|
if($model->odds_code == $type){
|
|
|
- if($firstscore == $homename && $home == $guest || $home > $guest){
|
|
|
+ if($firstscore == $homename && $home == $guest || $home > $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($firstscore == $guestname && $home == $guest || $home > $guest){
|
|
|
+ if($firstscore == $guestname && $home == $guest || $home > $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($firstscore == $guestname && $home == $guest || $home < $guest){
|
|
|
+ if($firstscore == $guestname && $home == $guest || $home < $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($firstscore == $homename && $home < $guest || $home > $guest){
|
|
|
+ if($firstscore == $homename && $home < $guest || $home > $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($firstscore == $guestname && $home < $guest || $home > $guest){
|
|
|
+ if($firstscore == $guestname && $home < $guest || $home > $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($firstscore == $homename && $home < $guest || $home == $guest){
|
|
|
+ if($firstscore == $homename && $home < $guest || $home == $guest)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else{
|
|
|
return ['result' => 100,'matchResult' => "参数不存在"];
|
|
|
}
|
|
|
+ return ['result' => -1, 'matchResult' => $allword];
|
|
|
}
|
|
|
|
|
|
//进球大/小&进球单/双 sw_OUE
|
|
|
@@ -986,104 +745,57 @@ trait RulePlus
|
|
|
}
|
|
|
|
|
|
if($model->odds_code == $type){
|
|
|
- if($homeda > 1.5 && $text == "单"){
|
|
|
+ if($homeda > 1.5 && $text == "单")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 1.5 && $text == "单"){
|
|
|
+ if($homexiao > 1.5 && $text == "单")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 1.5 && $text == "双"){
|
|
|
+ if($homeda > 1.5 && $text == "双")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 1.5 && $text == "双"){
|
|
|
+ if($homexiao > 1.5 && $text == "双")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 2.5 && $text == "单"){
|
|
|
+ if($homeda > 2.5 && $text == "单")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 2.5 && $text == "单"){
|
|
|
+ if($homexiao > 2.5 && $text == "单")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 2.5 && $text == "双"){
|
|
|
+ if($homeda > 2.5 && $text == "双")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 2.5 && $text == "双"){
|
|
|
+ if($homexiao > 2.5 && $text == "双")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 3.5 && $text == "单"){
|
|
|
+ if($homeda > 3.5 && $text == "单")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 3.5 && $text == "单"){
|
|
|
+ if($homexiao > 3.5 && $text == "单")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 3.5 && $text == "双"){
|
|
|
+ if($homeda > 3.5 && $text == "双")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 3.5 && $text == "双"){
|
|
|
+ if($homexiao > 3.5 && $text == "双")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 4.5 && $text == "单"){
|
|
|
+ if($homeda > 4.5 && $text == "单")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 4.5 && $text == "单"){
|
|
|
+ if($homexiao > 4.5 && $text == "单")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 4.5 && $text == "双"){
|
|
|
+ if($homeda > 4.5 && $text == "双")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 4.5 && $text == "双"){
|
|
|
+ if($homexiao > 4.5 && $text == "双")
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else{
|
|
|
return ['result' => 100,'matchResult' => "参数不存在"];
|
|
|
}
|
|
|
+ return ['result' => -1, 'matchResult' => $allword];
|
|
|
}
|
|
|
|
|
|
//进球大/小&最先进球 sw_OUP
|
|
|
@@ -1095,104 +807,57 @@ trait RulePlus
|
|
|
$homexiao = intval($resultModels->guest_score) - intval($resultModels->home_score);
|
|
|
|
|
|
if($model->odds_code == $type){
|
|
|
- if($homeda > 1.5 && $firstscore == $homename){
|
|
|
+ if($homeda > 1.5 && $firstscore == $homename)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 1.5 && $firstscore == $guestname){
|
|
|
+ if($homeda > 1.5 && $firstscore == $guestname)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 2.5 && $firstscore == $homename){
|
|
|
+ if($homeda > 2.5 && $firstscore == $homename)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 2.5 && $firstscore == $guestname){
|
|
|
+ if($homeda > 2.5 && $firstscore == $guestname)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 3.5 && $firstscore == $homename){
|
|
|
+ if($homeda > 3.5 && $firstscore == $homename)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 3.5 && $firstscore == $guestname){
|
|
|
+ if($homeda > 3.5 && $firstscore == $guestname)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 3.5 && $firstscore == $homename){
|
|
|
+ if($homexiao > 3.5 && $firstscore == $homename)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 2.5 && $firstscore == $guestname){
|
|
|
+ if($homexiao > 2.5 && $firstscore == $guestname)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 2.5 && $firstscore == $homename){
|
|
|
+ if($homexiao > 2.5 && $firstscore == $homename)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 1.5 && $firstscore == $guestname){
|
|
|
+ if($homexiao > 1.5 && $firstscore == $guestname)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 1.5 && $firstscore == $homename){
|
|
|
+ if($homexiao > 1.5 && $firstscore == $homename)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 4.5 && $firstscore == $homename){
|
|
|
+ if($homeda > 4.5 && $firstscore == $homename)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homeda > 4.5 && $firstscore == $guestname){
|
|
|
+ if($homeda > 4.5 && $firstscore == $guestname)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 4.5 && $firstscore == $homename){
|
|
|
+ if($homexiao > 4.5 && $firstscore == $homename)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 4.5 && $firstscore == $guestname){
|
|
|
+ if($homexiao > 4.5 && $firstscore == $guestname)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else if($model->odds_code == $type){
|
|
|
- if($homexiao > 3.5 && $firstscore == $guestname){
|
|
|
+ if($homexiao > 3.5 && $firstscore == $guestname)
|
|
|
return ['result' => 1, 'matchResult' => $allword];
|
|
|
- }else{
|
|
|
- return ['result' => -1, 'matchResult' => $allword];
|
|
|
- }
|
|
|
}else{
|
|
|
return ['result' => 100,'matchResult' => "参数不存在"];
|
|
|
}
|
|
|
+ return ['result' => -1, 'matchResult' => $allword];
|
|
|
}
|
|
|
|
|
|
//落后反超获胜 sw_BH
|