0) { $data = $this->where($where) ->where('money_buy.game_name', $type) ->orderby('money_time','desc') ->paginate ($list); } else { $data = $this->where('money_buy.game_name', $type) ->orderby('money_time','desc') ->paginate ($list); } if (!$data < 0) { return -2021052003; // } for($i=0;$istatus==1){ $data[$i]->status = '投注'; }else if($data[$i]->status==2){ $data[$i]->status = '追号'; }else if($data[$i]->status==4){ $data[$i]->status = '撤单'; } if($data[$i]->water_status==1){ $data[$i]->water_status = '未回水'; }else if($data[$i]->water_status==2){ $data[$i]->water_status = '已回水'; } if($data[$i]->settle_status==1){ $data[$i]->settle_status = '未结算'; }else if($data[$i]->settle_status==2){ $data[$i]->settle_status = '已结算'; } if($data[$i]->game_status==0){ $data[$i]->game_status = '待开奖'; }else if($data[$i]->game_status==1){ $data[$i]->game_status = '开奖'; }else if($data[$i]->game_status==2){ $data[$i]->game_status = '未中奖'; } if($data[$i]->member_type==1){ $data[$i]->member_type = '普通会员'; }else if($data[$i]->member_type==2){ $data[$i]->member_type = '超级会员'; } $data[$i]->order_time = $data[$i]->order_id.'
'.$data[$i]->money_time; $codes = json_decode($data[$i]->codes, true); $data[$i]->content = ''; for($j=0;$jwhere('odds_only',$odds_only)->first(); $result = DB::table('st_odds_code')->where('odds_code',$res->odds_code)->first(); $game = DB::table('st_game_type')->where('game_code',$data[$i]->game_name)->first(); $data[$i]->content = $data[$i]->content.$result->odds_name. '¥'.$codes[$j]['bet_amount'].'
'; $data[$i]->game = $game->game_name; } } return $data->toArray(); } }