|
@@ -75,7 +75,7 @@ class WinfailLogic
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
foreach ($ret as $val) {
|
|
foreach ($ret as $val) {
|
|
|
- $return[$val->batch_id][$val->match_id] = ['result_flag' => $val->result_flag, 'single_result' => $val->single_result];
|
|
|
|
|
|
|
+ $return[$val->order_id][$val->match_id] = ['result_flag' => $val->result_flag, 'single_result' => $val->single_result];
|
|
|
}
|
|
}
|
|
|
return $return;
|
|
return $return;
|
|
|
}
|
|
}
|
|
@@ -205,11 +205,11 @@ class WinfailLogic
|
|
|
$bet_type = $matchModel->bet_type;
|
|
$bet_type = $matchModel->bet_type;
|
|
|
|
|
|
|
|
DB::update('update money_buy_match set "result"=?,matchresult=? where match_id=? and game_code=? and odds_code=? and p_code=? and condition=? and is_champion=?', [$win, $matword, $match_id, $game_code, $odds_code, $p_code, $condition, $is_champion]);
|
|
DB::update('update money_buy_match set "result"=?,matchresult=? where match_id=? and game_code=? and odds_code=? and p_code=? and condition=? and is_champion=?', [$win, $matword, $match_id, $game_code, $odds_code, $p_code, $condition, $is_champion]);
|
|
|
- $sql = "select batch_id from money_buy_match where match_id=$match_id and game_code='$game_code' and p_code='$p_code'and odds_code='$odds_code'and condition='$condition' and is_champion=$is_champion ";
|
|
|
|
|
|
|
+ $sql = "select order_id from money_buy_match where match_id=$match_id and game_code='$game_code' and p_code='$p_code'and odds_code='$odds_code'and condition='$condition' and is_champion=$is_champion ";
|
|
|
if ($bet_type == 1) {
|
|
if ($bet_type == 1) {
|
|
|
- DB::update("update money_buy_simplex set game_status=$rwin where game_code='$game_code' and match_id=$match_id and batch_id in ( $sql)");
|
|
|
|
|
|
|
+ DB::update("update money_buy_simplex set game_status=$rwin where game_code='$game_code' and match_id=$match_id and order_id in ( $sql)");
|
|
|
} else {
|
|
} else {
|
|
|
- DB::update("update money_buy_str set game_status=$rwin where batch_id in ( $sql)");
|
|
|
|
|
|
|
+ DB::update("update money_buy_str set game_status=$rwin where order_id in ( $sql)");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
DB::update("update comendnotice set status=1,result=1,done_time='$nowtime',pcount=pcount+1 where id=$noticeId ");
|
|
DB::update("update comendnotice set status=1,result=1,done_time='$nowtime',pcount=pcount+1 where id=$noticeId ");
|