|
@@ -407,13 +407,14 @@ class SettlementOrder extends SettlementBase
|
|
|
|
|
|
|
|
|
|
|
|
|
// 新增中奖记录表
|
|
// 新增中奖记录表
|
|
|
- $old = $this->money_prize_map[$order_id];
|
|
|
|
|
|
|
+ //$old = $this->money_prize_map[$order_id];
|
|
|
$table = 'money_prize';
|
|
$table = 'money_prize';
|
|
|
if (isset($this->money_prize_map[$order_id])) {
|
|
if (isset($this->money_prize_map[$order_id])) {
|
|
|
$this->sqlArray[] = "update $table set money=$money,prize_money=$returnMoney, get_money= $returnMoney - $money where order_id='$order_id'";
|
|
$this->sqlArray[] = "update $table set money=$money,prize_money=$returnMoney, get_money= $returnMoney - $money where order_id='$order_id'";
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ $tmp_account = $this->account_map_array[$account_identity]->account ;
|
|
|
$sql = "insert into $table (info_identity,order_id,account_identity,account_name,game_name,buy_identity,money,money_time,status,prize_money,get_money) values ";
|
|
$sql = "insert into $table (info_identity,order_id,account_identity,account_name,game_name,buy_identity,money,money_time,status,prize_money,get_money) values ";
|
|
|
- $sql .= "('$info_identity','$order_id','$account_identity','$accountInfo->account','$game_name','$buy_identity',$money,'$money_time',1,$returnMoney,$returnMoney - $money)";
|
|
|
|
|
|
|
+ $sql .= "('$info_identity','$order_id','$account_identity','$tmp_account','$game_name','$buy_identity',$money,'$money_time',1,$returnMoney,$returnMoney - $money)";
|
|
|
$this->sqlArray[] = $sql;
|
|
$this->sqlArray[] = $sql;
|
|
|
}
|
|
}
|
|
|
|
|
|