/*
linetype
wtype
*/
if($BetType[1] == '场次'){
if($balla === null && $ballb === null){
echo '场次';
$this->getPrint("场次");
continue;
}
}else{
if($balla_hr === null && $ballb_hr === null){
echo '场次';
$this->getPrint("场次跳过");
continue;
}
}
//计算 开始
switch ($rs['linetype']){
case 20:
$graded=odds_dime($balla,$ballb,$rs['m_place'],$rs['mtype']);
break;
case 1://
$gradeds=win_chk($balla,$ballb,$rs['mtype']);
break;
case 11://
//$ball=$balla_hr.':'.$ballb_hr;
$graded=win_chk($balla_hr,$ballb_hr,$rs['mtype']);
break;
case 51://
$graded=win_chk($balla,$ballb,$rs['mtype']);
break;
case 52://
$graded=win_chk($balla_hr,$ballb_hr,$rs['mtype']);
//$ball=$balla_hr.':'.$ballb_hr;
break;
case 2://
/*if($rs['showtype']=='C'){
$ball=$ballb.':'.$balla;
$live_inball = $ballb_hr.' - '.$balla_hr.'
'.$ballb.' - '.$balla;
}*/
$graded=odds_letb($balla,$ballb,$rs['showtype'],$rs['m_place'],$rs['mtype']);
break;
case 12://
/*if($rs['showtype']=='C'){
$ball=$ballb_hr.':'.$balla_hr;
$live_inball = $ballb_hr.' - '.$balla_hr.'
'.$ballb.' - '.$balla;
}else{
$ball=$balla_hr.':'.$ballb_hr;
}*/
$graded=odds_letb($balla_hr,$ballb_hr,$rs['showtype'],$rs['m_place'],$rs['mtype']);
break;
case 9://
$score=explode('',$rs['middle']);
$msg=explode("
",$score[1]);
$bcd=explode(":",$msg[0]);
$m_in=$bcd[0];
$t_in=$bcd[1];
/*$mbinscore1=$balla-$-;
$tginscore1=$ballb-$t_in;*/
if ($rs['showtype']=='H'){
$mbinscore1=$balla-$m_in;
$tginscore1=$ballb-$t_in;
}else{
$mbinscore1=$balla-$t_in;
$tginscore1=$ballb-$m_in;
/*$ball=$ballb.':'.$balla;
$live_inball = $ballb_hr.' - '.$balla_hr.'
'.$ballb.' - '.$balla;*/
}
$graded=odds_letb($mbinscore1,$tginscore1,$rs['showtype'],$rs['m_place'],$rs['mtype']);
break;
case 19://
$score=explode('',$rs['middle']);
$msg=explode("
",$score[1]);
$bcd=explode(":",$msg[0]);
$m_in=$bcd[0];
$t_in=$bcd[1];
if ($rs['showtype']=='H'){
$mbinscore1=$balla_hr-$m_in;
$tginscore1=$ballb_hr-$t_in;
}else{
$mbinscore1=$balla_hr-$t_in;
$tginscore1=$ballb_hr-$m_in;
}
$graded=odds_letb($mbinscore1,$tginscore1,$rs['showtype'],$rs['m_place'],$rs['mtype']);
怎么让
case 11://
//$ball=$balla_hr.':'.$ballb_hr;
$graded=win_chk($balla_hr,$ballb_hr,$rs['mtype']);
break;
跳过
if($BetType[1] == '场次'){
if($balla === null && $ballb === null){
echo '场次';
$this->getPrint("场次");
continue;
}
}else{
if($balla_hr === null && $ballb_hr === null){
echo '场次';
$this->getPrint("场次跳过");
continue;
}
}