vali 6 年之前
父節點
當前提交
3a006a8843
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      datainf/logic/HttpServerSettelement.php

+ 4 - 4
datainf/logic/HttpServerSettelement.php

@@ -175,7 +175,7 @@ class HttpServerSettelement
             return;
             return;
         }
         }
 
 
-        $match_datas = DB::table('money_buy_match')->where(['batch_id' => $orderInfo->batch_id, 'bet_type' => 1])->get();
+        $match_datas = DB::table('money_buy_match')->where(['order_id' => $orderid, 'bet_type' => 1])->get();
         if (count($match_datas) <= 0) {
         if (count($match_datas) <= 0) {
             $data = Response::generate('', 10, $paras, 'match info empty');
             $data = Response::generate('', 10, $paras, 'match info empty');
             $response->end($data);
             $response->end($data);
@@ -351,7 +351,7 @@ class HttpServerSettelement
         $change_status = isset($paras['change_status']) ? $paras['change_status'] : 0;
         $change_status = isset($paras['change_status']) ? $paras['change_status'] : 0;
 
 
         if (empty($paras['order_ids'])) {
         if (empty($paras['order_ids'])) {
-            $idoarr = $this->getOrders($bettype, $game_code, $match_id);
+            $idoarr = $this->getOrders($bettype, $game_code, $match_id, $is_manaue);
         } else {
         } else {
             $idoarr = explode(",", $paras['order_ids']);
             $idoarr = explode(",", $paras['order_ids']);
         }
         }
@@ -383,14 +383,14 @@ class HttpServerSettelement
         return $ret;
         return $ret;
     }
     }
 
 
-    private function getOrders($bet_type, $game_code, $match_id, $is_manual)
+    private function getOrders($bet_type, $game_code, $match_id, $is_manual = 0)
     {
     {
         if ($bet_type == 1) {
         if ($bet_type == 1) {
             $table = 'money_buy_simplex';
             $table = 'money_buy_simplex';
             $ret = DB::table($table)->select('order_id')->where(['game_code' => $game_code, 'match_id' => $match_id, 'is_manual' => $is_manual])->get();
             $ret = DB::table($table)->select('order_id')->where(['game_code' => $game_code, 'match_id' => $match_id, 'is_manual' => $is_manual])->get();
         } else {
         } else {
             $table = 'money_buy_str';
             $table = 'money_buy_str';
-            $ret = DB::table($table)->select('order_id')->whereRaw(" batch_id in ( select batch_id  from  money_buy_match where match_id=$match_id and  game_code='$game_code' and bet_type=2 )")->get();
+            $ret = DB::table($table)->select('order_id')->whereRaw(" order_id in ( select order_id  from  money_buy_match where match_id=$match_id and  game_code='$game_code' and bet_type=2 )")->get();
         }
         }
         $return = [];
         $return = [];
         if ($ret) {
         if ($ret) {