彭俊 6 rokov pred
rodič
commit
cc5197df45

+ 3 - 12
app/Http/Controllers/Api/WriteSportsController.php

@@ -319,6 +319,7 @@ class WriteSportsController extends BaseController{
                             $up_match=[];
                             $up_match['utime'] = date('Y-m-d H:i:s');
                             $up_match['status'] = $data['status'];
+                            //获取需更新字段
                             if($data['is_rollball'] == 1){
                                 $up_match['is_rollball'] = $data['is_rollball'];
                             }
@@ -330,17 +331,7 @@ class WriteSportsController extends BaseController{
                             }
                             if($data['is_stringscene'] == 1){
                                 $up_match['is_stringscene'] = $data['is_stringscene'];
-                            }
-
-
-                            // $up_match = [
-                            //     'utime'=>date('Y-m-d H:i:s'),
-                            //     'status'=>$data['status'],
-                            //     'is_rollball'=>$data['is_rollball']?:0,
-                            //     'is_today'=>$data['is_today']?:0,
-                            //     'is_morningplate'=>$data['is_morningplate']?:0,
-                            //     'is_stringscene'=>$data['is_stringscene']?:0,
-                            // ];    
+                            }   
 
                             //如果是网球 追加rule 字段
                             if($game_code == 'wq' and !empty($data['rule'])){
@@ -612,7 +603,7 @@ class WriteSportsController extends BaseController{
             //获取 当前 所有 可用 赔率 sole
             $odds_only = $getData['odds_only'];
             //更新赛事下所有 不在本次请求的赔率 状态
-            $ret= OddsModel::upOddsStatus($models,$s_match_id,'',$source,$odds_only);
+            $ret= OddsModel::upOddsStatus($models,$s_match_id,'',$source,$odds_only,$is_stringscene);
             if($ret != true) throw new \Exception(Response::generate($gameName,Response::ODDS_SOLE_ERR));
 
             //获取当前赛事 在本地的所有赔率

+ 2 - 1
app/Http/Model/StZqOdds.php

@@ -30,12 +30,13 @@ class StZqOdds extends Model
     /*
      * 更新赛事下赔率状态
      */
-    public static function upOddsStatus($model=[],$others_match_id='',$others_lg_id=[],$source='',$odds_only=[]){
+    public static function upOddsStatus($model=[],$others_match_id='',$others_lg_id=[],$source='',$odds_only=[],$is_stringscene=0){
         $where = [];
         //普通 赔率
         if(!empty($others_match_id) and !empty($source)){
             $where = [
                 ['others_match_id','=',$others_match_id],
+                ['is_stringscene','=',$is_stringscene],
                 ['source','=',$source]
             ];
             //获取当前 赛事 所有 赔率only