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