|
@@ -33,6 +33,26 @@ class SportsNoteList extends BaseModel {
|
|
|
|
|
|
|
|
//订单投注的玩法
|
|
//订单投注的玩法
|
|
|
$content = \App\Models\MoneyBuyMatch::where('bet_type','1')->get();
|
|
$content = \App\Models\MoneyBuyMatch::where('bet_type','1')->get();
|
|
|
|
|
+ for($d=0;$d<count($content);$d++){
|
|
|
|
|
+ if($data[$d]->result==0){
|
|
|
|
|
+ $data[$d]->result = '未处理';
|
|
|
|
|
+ }
|
|
|
|
|
+ if($data[$d]->result==1){
|
|
|
|
|
+ $data[$d]->result = '赢';
|
|
|
|
|
+ }
|
|
|
|
|
+ if($data[$d]->result==-1){
|
|
|
|
|
+ $data[$d]->result = '输';
|
|
|
|
|
+ }
|
|
|
|
|
+ if($data[$d]->result==2){
|
|
|
|
|
+ $data[$d]->result = '平';
|
|
|
|
|
+ }
|
|
|
|
|
+ if($data[$d]->result==3){
|
|
|
|
|
+ $data[$d]->result = '赢半平半';
|
|
|
|
|
+ }
|
|
|
|
|
+ if($data[$d]->result==4){
|
|
|
|
|
+ $data[$d]->result = '输半平半';
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
//玩法
|
|
//玩法
|
|
|
$result = \App\Models\Matchcode::where('game_code','zq')->get();
|
|
$result = \App\Models\Matchcode::where('game_code','zq')->get();
|
|
@@ -54,12 +74,8 @@ class SportsNoteList extends BaseModel {
|
|
|
}
|
|
}
|
|
|
if($data[$i]->game_status==0){
|
|
if($data[$i]->game_status==0){
|
|
|
$data[$i]->game_status = '未处理';
|
|
$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 = '输';
|
|
|
|
|
- }else if($data[$i]->game_status==3){
|
|
|
|
|
- $data[$i]->game_status = '平';
|
|
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $data[$i]->game_status = '已处理';
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$data[$i]->match_id_order = '<span>'.$data[$i]->match_id.'</span> (<span>'.$data[$i]->account_name.'</span>)<br>'.$data[$i]->order_id;
|
|
$data[$i]->match_id_order = '<span>'.$data[$i]->match_id.'</span> (<span>'.$data[$i]->account_name.'</span>)<br>'.$data[$i]->order_id;
|
|
@@ -152,11 +168,21 @@ class SportsNoteList extends BaseModel {
|
|
|
for($c=0;$c<count($result);$c++){
|
|
for($c=0;$c<count($result);$c++){
|
|
|
if($content[$b]->odds_code == $result[$c]->odds_code){
|
|
if($content[$b]->odds_code == $result[$c]->odds_code){
|
|
|
$data[$i]->str1 = 1;
|
|
$data[$i]->str1 = 1;
|
|
|
- $data[$i]->content = $data[$i]->content.$result[$c]->odds_name.'<br>'.$content[$b]->condition.' '.$data[$i]->team.'@'.$content[$b]->odds.' ¥'.$content[$b]->bet_money.'<br>';
|
|
|
|
|
|
|
+ if($content[$b]->result=='未处理'){
|
|
|
|
|
+ $data[$i]->content = $data[$i]->content.$result[$c]->odds_name.'<br>'.$content[$b]->condition.' '.$data[$i]->team.'@'.$content[$b]->odds.' ¥'.$content[$b]->bet_money.'<br>';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $data[$i]->content = $data[$i]->content.$result[$c]->odds_name.'<br>'.$content[$b]->condition.' '.$data[$i]->team.'@'.$content[$b]->odds.' ¥'.$content[$b]->bet_money.'<br>'.$content[$b]->result.'<br>';
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if($data[$i]->str1 == 0){
|
|
if($data[$i]->str1 == 0){
|
|
|
- $data[$i]->content = $data[$i]->content.$content[$b]->odds_code.'<br>'.$content[$b]->condition.' '.$data[$i]->team.'@'.$content[$b]->odds.' ¥'.$content[$b]->bet_money.'<br>';
|
|
|
|
|
|
|
+ if($content[$b]->result=='未处理'){
|
|
|
|
|
+ $data[$i]->content = $data[$i]->content.$content[$b]->odds_code.'<br>'.$content[$b]->condition.' '.$data[$i]->team.'@'.$content[$b]->odds.' ¥'.$content[$b]->bet_money.'<br>';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $data[$i]->content = $data[$i]->content.$content[$b]->odds_code.'<br>'.$content[$b]->condition.' '.$data[$i]->team.'@'.$content[$b]->odds.' ¥'.$content[$b]->bet_money.'<br>'.$content[$b]->result.'<br>';
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|