彭俊 6 роки тому
батько
коміт
cdb7b8d607
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      Application/Api/Controller/Betorder.php

+ 3 - 3
Application/Api/Controller/Betorder.php

@@ -532,7 +532,7 @@ class Betorder extends BaseController{
                 ->where('id',$v['match_id'])
                 ->first();
 
-            $match_time = $info->match_date.''.$info->match_time;
+            $match_time = $info->match_date.' '.$info->match_time;
 
             $orderData = [
                 'order_type'=>1,//订单类型 1单式 2串式
@@ -1091,14 +1091,14 @@ class Betorder extends BaseController{
                 //=====拼接赛事数据===
                  //获取开赛时间
                 //根据球类代码 获取相关model
-                $models = $this->commonFunction->getModels($v['ballId']);
+                $models = $this->commonFunction->getModels($vv['ballId']);
                 $model_match = $models['model_match'];
                 $info = lm($model_match,'Sports')
                     ->select('match_date','match_time')
                     ->where('id',$vv['match_id'])
                     ->first();
 
-                $match_time = $info->match_date.''.$info->match_time;
+                $match_time = $info->match_date.' '.$info->match_time;
                 $match_data_order[] = [
                     'game_code'=>$vv['ballId'],//球类代码
                     'other_match_id'=>$vv['others_match_id'],//第三方赛事id 188