彭俊 6 vuotta sitten
vanhempi
commit
8b3021c007
1 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. 5 4
      app/Http/Controllers/Api/WriteSportsController.php

+ 5 - 4
app/Http/Controllers/Api/WriteSportsController.php

@@ -293,11 +293,12 @@ class WriteSportsController extends BaseController{
                             $lg_id = commonFunction::searcharray($data['lg_id'],'others_lg_id',$l_lg_data,'lg_id');
                             //如果有上半场赛事id 获取上半场赛事是否存在
                             if(!empty($l_match_data) and $data['half_match_id'] > 0){
-                                $half_match_id = $models['model_local_match']::where(['others_match_id'=>$data['half_match_id'],'source'=>$source])
-                                    ->value('match_id');
-                                if(empty($half_match_id)) throw new \Exception(Response::generate($gameName.'上半场赛事-match_id:'.$data['match_id'].';',Response::HALF_MATCH_ERROR)) ;//Render([], '10024', lang('Tips','Sports')->get('half_match_error'));
+                                $half_match_id = -1;
+                                // $half_match_id = $models['model_local_match']::where(['others_match_id'=>$data['half_match_id'],'source'=>$source])
+                                //     ->value('match_id');
+                                // if(empty($half_match_id)) throw new \Exception(Response::generate($gameName.'上半场赛事-match_id:'.$data['match_id'].';',Response::HALF_MATCH_ERROR)) ;//Render([], '10024', lang('Tips','Sports')->get('half_match_error'));
                             }
-                            //如果赛事没有开始日期,则为冠军盘口赛事
+                            //如果赛事没有开始日期,则为冠军盘口赛事 
                             if(empty($data['match_date'])){
                                 //冠军盘口赛事获取所属联赛结束时间
                                 $last_time = $models['model_league']::where(['id'=>$lg_id])