|
|
@@ -548,14 +548,17 @@ class HttpServerOnlySet
|
|
|
if (!isset($this->PDatas['account_mash'][$account_identity])) {
|
|
|
$this->PDatas['account_mash'][$account_identity] = $this->PDatas['account_indentity_map_array'][$account_identity]->cash;
|
|
|
}
|
|
|
+ if ($returnMoney <= 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
$this->PDatas['account_mash'][$account_identity] = $this->PDatas['account_mash'][$account_identity] + $returnMoney;
|
|
|
$user_money_cash = $this->PDatas['account_mash'][$account_identity];
|
|
|
$sql = "insert into money_details(info_identity,trade_id,account_name,account_identity,money,money_time,money_type,money_cash,trade_type,trade_desc,reason,sysetem_user,status) values(";
|
|
|
$sql .= "'$info_identity','$order_id','$account','$account_identity',$returnMoney,'$money_time',1,$user_money_cash,4,'$trade_desc','$reason','系统',1)";
|
|
|
-
|
|
|
$this->PushSqlToArray($sql);
|
|
|
|
|
|
+
|
|
|
// 修改用余额 在外面合并了,不需要了
|
|
|
//$this->PushSqlToArray("update account_detailed set available_cash=available_cash+$money,cash=cash+$money where account_identity='$account_identity' ");
|
|
|
|