vali 6 years ago
parent
commit
1495ddd464

+ 0 - 1
app/Http/Model/StBqResult.php

@@ -87,7 +87,6 @@ class StBqResult extends Model
                 if ($ret != true) throw new \Exception(Response::generate('', Response::ADD_MATCH_R_ERROR));//Render([], '10022', lang('Tips','Sports')->get('add_match_r_error'));
             }
         }
-        return Response::success();
     }
 
     //计算滚球 赛事进行时间

+ 0 - 1
app/Http/Model/StLqResult.php

@@ -99,7 +99,6 @@ class StLqResult extends Model
                 if($ret != true) throw new \Exception( Response::generate('',Response::ADD_MATCH_R_ERROR));//Render([], '10022', lang('Tips','Sports')->get('add_match_r_error'));
             }
         }
-        return Response::success();
     }
 
     //计算滚球 赛事进行时间

+ 0 - 1
app/Http/Model/StWqResult.php

@@ -87,7 +87,6 @@ class StWqResult extends Model
                 if ($ret != true) throw new \Exception(Response::generate('', Response::ADD_MATCH_R_ERROR));//Render([], '10022', lang('Tips','Sports')->get('add_match_r_error'));
             }
         }
-        return Response::success();
     }
 
     //计算滚球 赛事进行时间

+ 6 - 7
app/Http/Model/StZqOdds.php

@@ -28,9 +28,9 @@ class StZqOdds extends Model
     }
 
     /*
-     * 获取赛事下所有 不在本次请求的 赔率only 并 更新状态
+     * 更新赛事下赔率状态
      */
-    public static function getMatchSole($model=[],$others_match_id='',$others_lg_id=[],$source='',$odds_only=[]){
+    public static function upOddsStatus($model=[],$others_match_id='',$others_lg_id=[],$source='',$odds_only=[]){
         $where = [];
         //普通 赔率
         if(!empty($others_match_id) and !empty($source)){
@@ -49,7 +49,7 @@ class StZqOdds extends Model
             //获取当前 赛事 所有 赔率only
             $odds_data = $model['model_odds']::select('odds_only')
             ->whereIn('others_lg_id',$others_lg_id)
-            ->where(['source','=',$source])
+            ->where('source',$source)
             ->get()
             ->toArray();
         }
@@ -75,9 +75,8 @@ class StZqOdds extends Model
             }
         }
         //批量更新 赔率状态
-        $ds = $model['model_odds']::whereIn('odds_only', $only)
-            ->update(['status' => -1]);
-
-        if($ds > 0 ) return true;
+        $del = $model['model_odds']::whereIn('odds_only', $only)
+        ->delete();
+        if($del) return true;
     }
 }

+ 0 - 1
app/Http/Model/StZqResult.php

@@ -86,7 +86,6 @@ class StZqResult extends Model
                 if ($ret != true) throw new \Exception(Response::generate('', Response::ADD_MATCH_R_ERROR));//Render([], '10022', lang('Tips','Sports')->get('add_match_r_error'));
             }
         }
-        return Response::success();
     }
 
     //计算滚球 赛事进行时间