Browse Source

异常处理

彭俊 6 years ago
parent
commit
f2820afb92
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/Http/Controllers/Admin/SoccerStringNoteListController.php

+ 3 - 3
app/Http/Controllers/Admin/SoccerStringNoteListController.php

@@ -315,7 +315,7 @@ class SoccerStringNoteListController extends Controller
             return -1;
         }
         $order = \App\Models\MoneyBuyStr::where('id', $id)->first();
-        $match = \App\Models\MoneyBuyMatch::where('batch_id', $order->batch_id)->where('bet_type', '2')->get();
+        $match = \App\Models\MoneyBuyMatch::where('order_id', $order->order_id)->where('bet_type', '2')->get();
         $bet_type = 2; //串关注单
         $order_id = $order->order_id;
         for ($i = 0; $i < count($match); $i++) {
@@ -345,7 +345,7 @@ class SoccerStringNoteListController extends Controller
             return -1;
         }
         $order = \App\Models\MoneyBuyStr::where('id', $id)->first();
-        $match = \App\Models\MoneyBuyMatch::where('batch_id', $order->batch_id)->where('bet_type', '2')->get();
+        $match = \App\Models\MoneyBuyMatch::where('order_id', $order->order_id)->where('bet_type', '2')->get();
         $order_id = $order->order_id;
         for ($i = 0; $i < count($match); $i++) {
             $match_id = $match[$i]->match_id;
@@ -395,7 +395,7 @@ class SoccerStringNoteListController extends Controller
         $orders = \App\Models\MoneyBuyStr::where('settle_status', '1')->get();
         $order_ids = array();
         for ($i = 0; $i < count($orders); $i++) {
-            $result = \App\Models\MoneyBuyMatch::where('batch_id', $orders[$i]->batch_id)->get();
+            $result = \App\Models\MoneyBuyMatch::where('order_id', $orders[$i]->order_id)->get();
             $res = array();
             for ($j = 0; $j < count($result); $j++) {
                 $res[] = $result[$j]->result;