vali 6 سال پیش
والد
کامیت
ae64d35d68
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      app/Logic/UnSettmatchLogic.php

+ 4 - 1
app/Logic/UnSettmatchLogic.php

@@ -37,9 +37,12 @@ class UnSettmatchLogic
     {
         $match_id = isset($datas['match_id']) ? intval($datas['match_id']) : 0;
         $game_code = isset($datas['game_code']) ? trim($datas['game_code']) : '';
+        if (!in_array($game_code, ['zq', 'lq', 'bq', 'wq'])) {
+            goto PARAEORROR;
+        }
         $result = $this->getResult($game_code, $match_id);
-
         if (empty($match_id) || empty($game_code) || empty($result) || !in_array($game_code, ['zq', 'lq', 'bq', 'wq'])) {
+            PARAEORROR:
             $msg = date("Y-m-d H:i:s") . " 取消赛事处理--参数错误!\n";
             unset($datas['token']);
             $this->backandret($response, 0, $msg, $datas);