|
|
@@ -410,8 +410,31 @@ class Betorder extends BaseController{
|
|
|
//是否是滚球投注
|
|
|
$is_rolling = 0;
|
|
|
if($v['oddsType']=='StRollBall'){
|
|
|
- $is_rolling = 1;
|
|
|
+ $is_rolling = 1;
|
|
|
+ $roll_time=$v['roll_time']?:'';//追加滚球投注时 赛事进行时间
|
|
|
}
|
|
|
+ //===追加各球类其他状态码===
|
|
|
+ //即将
|
|
|
+ if($v['oddsType']=='StSoon'){
|
|
|
+ $is_rolling = 2;
|
|
|
+ }
|
|
|
+ //今日
|
|
|
+ if($v['oddsType']=='StToday'){
|
|
|
+ $is_rolling = 3;
|
|
|
+ }
|
|
|
+ //早盘
|
|
|
+ if($v['oddsType']=='StMorningPlate'){
|
|
|
+ $is_rolling = 4;
|
|
|
+ }
|
|
|
+ //串场
|
|
|
+ if($v['oddsType']=='StStringScene'){
|
|
|
+ $is_rolling = 5;
|
|
|
+ }
|
|
|
+ //冠军
|
|
|
+ if($v['oddsType']=='StChampion'){
|
|
|
+ $is_rolling = 6;
|
|
|
+ }
|
|
|
+ //===end===
|
|
|
$matchData =[
|
|
|
'odds_id' =>$v['id'],
|
|
|
'home_team' => $v['home_team'],
|
|
|
@@ -432,7 +455,9 @@ class Betorder extends BaseController{
|
|
|
'is_rolling' =>$is_rolling,
|
|
|
'is_champion' => $is_champion?:0,//1 冠军投注 0普通赛事投注
|
|
|
'order_id'=>$OrderID,//追加所属订单id
|
|
|
+ 'roll_time'=>$roll_time,//追加滚球投注时 赛事进行时间
|
|
|
];
|
|
|
+
|
|
|
//插入数据源
|
|
|
$moneyBuyMatch = lm('MoneyBuyMatch','Api')->insert($matchData);
|
|
|
if(!$moneyBuyMatch){
|