vali 6 жил өмнө
parent
commit
432a26aee6

+ 1 - 1
datainf/logic/HttpServerOnlySet.php

@@ -497,7 +497,7 @@ class HttpServerOnlySet
         $reason = $type == 1 ? '单式投注订单回款' : '串式投注订单回款';
 
         if (isset($this->PDatas['money_detail_array'][$order_id])) {
-            $sql = "update  money_details  set money=$returnMoney  where account_identity='$account_identity' and trade_id='$order_id' ";
+            $sql = "update  money_details  set money=$returnMoney  where account_identity='$account_identity' and trade_id='$order_id' and trade_type=4 ";
         } else {
             $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,0,4,'$trade_desc','$reason','系统',1)";