Browse Source

异常处理

彭俊 6 năm trước cách đây
mục cha
commit
889c3b8b62

+ 1 - 1
app/Http/Controllers/Api/WriteSportsController.php

@@ -245,7 +245,7 @@ class WriteSportsController extends BaseController{
             sort($identity);
 
             //获取 本地 已存在 联赛
-            $l_lg_data = $models['model_local_league']::whereIn('identity',$identity)->select('identity','lg_id')->get()->toArray();
+            $l_lg_data = $models['model_local_league']::whereIn('identity',$identity)->select('identity','lg_id','others_lg_id')->get()->toArray();
             //二维数组去重
             $l_lg_data = commonFunction::uniquArrV2($l_lg_data,'identity');
             //循环对比 请求uuid->本地identity

+ 4 - 4
app/Models/SportsBase.php

@@ -28,10 +28,10 @@ class SportsBase extends BaseModel {
         $where[] = array('st_bq_league.name_chinese','<>','');
 
         $source = \App\Models\Setinfo::where('id','1000')->first();
-        if($source->infocontent != '混合数据'){
-            $where[] = array('st_bq_local_match.source', '=', $source->infocontent);
-            $where[] = array('st_bq_local_league.source', '=', $source->infocontent);
-        }
+        // if($source->infocontent != '混合数据'){
+        //     $where[] = array('st_bq_local_match.source', '=', $source->infocontent);
+        //     $where[] = array('st_bq_local_league.source', '=', $source->infocontent);
+        // }
 
         if (is_array ($where) && count ($where) > 0) {
             $data = $this->join('st_bq_league','st_bq_competition.lg_id','=','st_bq_league.id')

+ 4 - 4
app/Models/SportsBasket.php

@@ -28,10 +28,10 @@ class SportsBasket extends BaseModel {
         $where[] = array('st_lq_league.name_chinese','<>','');
 
         $source = \App\Models\Setinfo::where('id','1000')->first();
-        if($source->infocontent != '混合数据'){
-            $where[] = array('st_lq_local_match.source', '=', $source->infocontent);
-            $where[] = array('st_lq_local_league.source', '=', $source->infocontent);
-        }
+        // if($source->infocontent != '混合数据'){
+        //     $where[] = array('st_lq_local_match.source', '=', $source->infocontent);
+        //     $where[] = array('st_lq_local_league.source', '=', $source->infocontent);
+        // }
 
         if (is_array ($where) && count ($where) > 0) {
             $data = $this->join('st_lq_league','st_lq_competition.lg_id','=','st_lq_league.id')

+ 5 - 5
app/Models/SportsTennis.php

@@ -27,11 +27,11 @@ class SportsTennis extends BaseModel {
         
         $where[] = array('st_wq_league.name_chinese','<>','');
 
-        $source = \App\Models\Setinfo::where('id','1000')->first();
-        if($source->infocontent != '混合数据'){
-            $where[] = array('st_wq_local_match.source', '=', $source->infocontent);
-            $where[] = array('st_wq_local_league.source', '=', $source->infocontent);
-        }
+        // $source = \App\Models\Setinfo::where('id','1000')->first();
+        // if($source->infocontent != '混合数据'){
+        //     $where[] = array('st_wq_local_match.source', '=', $source->infocontent);
+        //     $where[] = array('st_wq_local_league.source', '=', $source->infocontent);
+        // }
 
         if (is_array ($where) && count ($where) > 0) {
             $data = $this->join('st_wq_league','st_wq_competition.lg_id','=','st_wq_league.id')