彭俊 6 жил өмнө
parent
commit
1dc66aacee

+ 3 - 3
app/Lib/Settlement/SettlementWinFail.php

@@ -188,12 +188,12 @@ class SettlementWinFail
                 throw  new \Exception('非冠军比赛结果数据不能为空');
             }
 
-            if ($this->RefClass->hasMethod($fun)) {
+            if ($this->RefClass->hasMethod($fun2)) {
                 $winorfalse = $this->AdapterObj->$fun($sval, $this->resultModel, []);
             } elseif ($this->RefClass->hasMethod($fun2)) {
                 $winorfalse = $this->AdapterObj->$fun2($sval, $this->resultModel, []);
             } else {
-                throw new \Exception('没有找到玩法输赢判断规则-01', 40010);
+                throw new \Exception('没有找到玩法输赢判断规则-01-'.$sval->id, 40010);
             }
         } else {
             $this->getGjDatas($sval);
@@ -203,7 +203,7 @@ class SettlementWinFail
             } elseif ($this->RefClass->hasMethod($fun2)) {
                 $winorfalse = $this->AdapterObj->$fun2($sval, $this->gjModel, []);
             } else {
-                throw new \Exception('没有找到玩法输赢判断规则-02', 40010);
+                throw new \Exception('没有找到玩法输赢判断规则-02-'.$sval->id, 40010);
             }
         }