彭俊 6 gadi atpakaļ
vecāks
revīzija
62e812de02
2 mainītis faili ar 37 papildinājumiem un 3 dzēšanām
  1. 33 3
      app/Lib/Settlement/SwInterface.php
  2. 4 0
      app/Models/SportsNoteList.php

+ 33 - 3
app/Lib/Settlement/SwInterface.php

@@ -48,7 +48,7 @@ class SwInterface
         return self::$Instance;
     }
 
-    //按赛事计算输赢
+    //按赛事计算输赢  $noticeId 比赛结束通知表commendnotice表的ID值
     public function MatchWinFail($noticeId)
     {
         $url = self::$urlBase . '/WinFail';
@@ -72,10 +72,10 @@ class SwInterface
         return $ret;
     }
 
-    //普通计算某个订单输赢
+    //普通 计算某个订单输赢   $bet_type 1单式  2串式
     public function WinFailNomalOrder($order_id, $bet_type)
     {
-        $url = self::$urlBase . '/WinFaileOneOrderNomal';
+        $url = self::$urlBase . '/WinfailoneNomal';
         $data = [
             'token' => self::$token,
             'order_id' => $order_id,
@@ -103,6 +103,36 @@ class SwInterface
         return $ret;
     }
 
+
+    //撤销一个串式订单
+    public function UnsetOneStringOrder($game_code, $match_id, $order_id)
+    {
+        $url = self::$urlBase . '/UnsetOneStringOrder';
+        $data = [
+            'token' => self::$token,
+            'game_code' => $game_code,
+            'match_id' => $match_id,
+            'order_id' => $order_id
+        ];
+        $ret = json_decode($this->request_post($url, $data), true);
+        return $ret;
+    }
+
+
+    //把一个串式  撤销订单改为重下单状态
+    public function ResStringOneOrder($game_code, $match_id, $order_id)
+    {
+        $url = self::$urlBase . '/ResStringOneOrder';
+        $data = [
+            'token' => self::$token,
+            'game_code' => $game_code,
+            'match_id' => $match_id,
+            'order_id' => $order_id
+        ];
+        $ret = json_decode($this->request_post($url, $data), true);
+        return $ret;
+    }
+
     //取消一个订单
     public function CancelOneOrder($game_code, $match_id, $order_id)
     {

+ 4 - 0
app/Models/SportsNoteList.php

@@ -346,6 +346,10 @@ class SportsNoteList extends BaseModel
             }
         }
 
+        if($gameCode == 'wq'){
+            return 111;
+        }
+
         return $ScoreTitle;
     }