|
|
@@ -390,14 +390,14 @@ class MoneyBuyStr extends BaseModel
|
|
|
}
|
|
|
|
|
|
//获取串式注单信息
|
|
|
- public function strmatchs()
|
|
|
+ public function strmatchs($game_code)
|
|
|
{
|
|
|
- $match = \App\Models\MoneyBuyMatch::select('match_id', 'batch_id')->where('bet_type', 2)->get()->toArray();
|
|
|
- $str = $this->select('order_id', 'batch_id')->get()->toArray();
|
|
|
+ $match = \App\Models\MoneyBuyMatch::select('match_id', 'order_id')->where('bet_type', 2)->where('game_code',$game_code)->get()->toArray();
|
|
|
+ $str = $this->select('order_id')->get()->toArray();
|
|
|
for ($i = 0; $i < count($str); $i++) {
|
|
|
$str[$i]['match_ids'] = array();
|
|
|
for ($j = 0; $j < count($match); $j++) {
|
|
|
- if ($str[$i]['batch_id'] == $match[$j]['batch_id']) {
|
|
|
+ if ($str[$i]['order_id'] == $match[$j]['order_id']) {
|
|
|
$str[$i]['match_ids'][] = $match[$j]['match_id'];
|
|
|
}
|
|
|
}
|