Explorar o código

修改赔率异常

彭俊 %!s(int64=6) %!d(string=hai) anos
pai
achega
e658288def
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/Http/Controllers/Api/WriteSportsController.php

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

@@ -1483,14 +1483,14 @@ class WriteSportsController extends BaseController{
     /*
     /*
      * 验证所属 赛事 是否存在
      * 验证所属 赛事 是否存在
      */
      */
-    public function matchVerify($models=[],$match_identity='',$source='',$gameName=''){
+    public function matchVerify_v2($models=[],$match_identity='',$source='',$gameName=''){
         if(empty($models) || empty($match_identity)) throw new \Exception(Response::generate('',Response::ABNORMAL));
         if(empty($models) || empty($match_identity)) throw new \Exception(Response::generate('',Response::ABNORMAL));
         $l_match_id = $models['model_local_match']::where(['identity'=>$match_identity,'source'=>$source])->value('match_id');
         $l_match_id = $models['model_local_match']::where(['identity'=>$match_identity,'source'=>$source])->value('match_id');
 
 
         if($l_match_id < 1) throw new \Exception(Response::generate($gameName.'match_identity-'.$match_identity,Response::MATCH_ERROR));
         if($l_match_id < 1) throw new \Exception(Response::generate($gameName.'match_identity-'.$match_identity,Response::MATCH_ERROR));
         return $l_match_id;
         return $l_match_id;
     }
     }
-    public function __matchVerify($models=[],$s_match_id='',$source='',$gameName=''){
+    public function matchVerify($models=[],$s_match_id='',$source='',$gameName=''){
         if(empty($models) || empty($s_match_id)) throw new \Exception(Response::generate('',Response::ABNORMAL));
         if(empty($models) || empty($s_match_id)) throw new \Exception(Response::generate('',Response::ABNORMAL));
         $l_match_id = $models['model_local_match']::where(['others_match_id'=>$s_match_id,'source'=>$source])->value('match_id');
         $l_match_id = $models['model_local_match']::where(['others_match_id'=>$s_match_id,'source'=>$source])->value('match_id');