wesmiler 2 лет назад
Родитель
Сommit
52ceef6a80
1 измененных файлов с 11 добавлено и 11 удалено
  1. 11 11
      app/Services/WalletService.php

+ 11 - 11
app/Services/WalletService.php

@@ -489,7 +489,7 @@ class WalletService extends BaseService
                     // 充值处理
                     if($toAddress == $address && $ownerAddress && $accountType != 2){
                         if (BalanceLogModel::checkExists($txid)) {
-                            echo "【{$dateTime} recharge】账户[{$ownerAddress}]充值到钱包[{$address}]记录[{$txid}]已处理\n";
+                            echo "【{$dateTime} recharge】账户[{$ownerAddress}]充值到钱包[{$address}]记录[{$txid}]金额[{$amount}]已处理\n";
                             RedisService::set($cacheKey.'error', ['error'=>'记录已处理','data'=> $v], 7200);
                             continue;
                         }
@@ -504,7 +504,7 @@ class WalletService extends BaseService
                         $balance = isset($memberInfo['balance'])? floatval($memberInfo['balance']) : 0;
                         $userId = isset($memberInfo['id'])? intval($memberInfo['id']) : 0;
                         if(empty($memberInfo)){
-                            echo "【{$dateTime} recharge】账户[{$ownerAddress}]充值到钱包[{$address}]记录[{$txid}]未绑定用户\n";
+                            echo "【{$dateTime} recharge】账户[{$ownerAddress}]充值到钱包[{$address}]记录[{$txid}]金额[{$amount}]未绑定用户\n";
                             RedisService::set($cacheKey.'error', ['error'=>'用户不存在','data'=> $v], 7200);
                             continue;
                         }
@@ -525,7 +525,7 @@ class WalletService extends BaseService
                         }
                         if(!MemberModel::where(['id'=> $userId])->update($updateData)){
                             DB::rollBack();
-                            echo "【{$dateTime} recharge】账户[{$ownerAddress}]充值到钱包[{$address}]记录[{$txid}]入账处理失败\n";
+                            echo "【{$dateTime} recharge】账户[{$ownerAddress}]充值到钱包[{$address}]记录[{$txid}]金额[{$amount}]入账处理失败\n";
                             RedisService::set($cacheKey.'error', ['error'=>'入账处理失败','update'=>$updateData,'member'=> $memberInfo,'data'=> $v], 7200);
                             continue;
                         }
@@ -553,7 +553,7 @@ class WalletService extends BaseService
                         ];
                         if(!BalanceLogModel::insert($data)){
                             DB::rollBack();
-                            echo "【{$dateTime} recharge】账户[{$ownerAddress}]充值到钱包[{$address}]记录[{$txid}]充值明细处理失败\n";
+                            echo "【{$dateTime} recharge】账户[{$ownerAddress}]充值到钱包[{$address}]记录[{$txid}]金额[{$amount}]充值明细处理失败\n";
                             RedisService::set($cacheKey.'error', ['error'=>'充值明细处理失败','log'=> $data,'member'=> $memberInfo,'data'=> $v], 7200);
                             continue;
                         }
@@ -579,7 +579,7 @@ class WalletService extends BaseService
 
                         if(!AccountLogModel::insert($log)){
                             DB::rollBack();
-                            echo "【{$dateTime} recharge】账户[{$ownerAddress}]充值到钱包[{$address}]记录[{$txid}]账户明细处理失败\n";
+                            echo "【{$dateTime} recharge】账户[{$ownerAddress}]充值到钱包[{$address}]记录[{$txid}]金额[{$amount}]账户明细处理失败\n";
                             RedisService::set($cacheKey.'error', ['error'=>'账户明细处理失败','log'=>$log,'member'=> $memberInfo,'data'=> $v], 7200);
                             continue;
                         }*/
@@ -608,7 +608,7 @@ class WalletService extends BaseService
 
                         if(!AccountLogModel::insert($log)){
                             DB::rollBack();
-                            echo "【{$dateTime} recharge】账户[{$ownerAddress}]充值到钱包[{$address}]记录[{$txid}]平台账户明细处理失败\n";
+                            echo "【{$dateTime} recharge】账户[{$ownerAddress}]充值到钱包[{$address}]记录[{$txid}]金额[{$amount}]平台账户明细处理失败\n";
                             RedisService::set($cacheKey.'error', ['error'=>'平台账户明细处理失败','log'=>$log,'member'=> $memberInfo,'data'=> $v], 7200);
                             continue;
                         }
@@ -629,20 +629,20 @@ class WalletService extends BaseService
                         $trcUrl = isset($info['trc_url'])?  trim($info['trc_url']) : '';
                         $walletUrl = isset($info['wallet_url'])?  trim($info['wallet_url']) : '';
                         if (empty($info) || $logId<=0 || $userId<=0) {
-                            echo "【{$dateTime} withdraw】账户[{$toAddress}]从[{$address}]提现记录[{$txid}]不存在\n";
+                            echo "【{$dateTime} withdraw】账户[{$toAddress}]从[{$address}]提现记录[{$txid}]金额[{$amount}]不存在\n";
                             RedisService::set($cacheKey.'error', ['error'=>'提现记录不存在','data'=> $v], 7200);
                             continue;
                         }
 
                         if ($trcUrl != $toAddress || $walletUrl != $ownerAddress) {
-                            echo "【{$dateTime} withdraw】账户[{$toAddress}]从[{$address}]提现记录[{$txid}],提现订单交易地址不匹配\n";
+                            echo "【{$dateTime} withdraw】账户[{$toAddress}]从[{$address}]提现记录[{$txid}]金额[{$amount}],提现订单交易地址不匹配\n";
                             RedisService::set($cacheKey.'error', ['error'=>'提现订单交易地址不匹配','info'=>$info,'data'=> $v], 7200);
                             continue;
                         }
 
                         // 金额验证
                         if(abs($actualMoney - $amount) > 1){
-                            echo "【{$dateTime} withdraw】账户[{$toAddress}]从[{$address}]提现记录[{$txid}],提现金额与交易金额不匹配\n";
+                            echo "【{$dateTime} withdraw】账户[{$toAddress}]从[{$address}]提现记录[{$txid}]金额[{$amount}],提现金额与交易金额不匹配\n";
                             RedisService::set($cacheKey.'error', ['error'=>'提现金额与交易金额不匹配','info'=>$info,'data'=> $v], 7200);
                             continue;
                         }
@@ -651,7 +651,7 @@ class WalletService extends BaseService
                         DB::beginTransaction();
                         if(!BalanceLogModel::where(['id'=> $logId])->update(['status'=> 2, 'update_time'=>time()])){
                             DB::rollBack();
-                            echo "【{$dateTime} withdraw】账户[{$toAddress}]从[{$address}]提现记录[{$txid}],提现状态更新失败\n";
+                            echo "【{$dateTime} withdraw】账户[{$toAddress}]从[{$address}]提现记录[{$txid}]金额[{$amount}],提现状态更新失败\n";
                             RedisService::set($cacheKey.'error', ['error'=>'提现状态更新失败','info'=>$info,'data'=> $v], 7200);
                             continue;
                         }
@@ -681,7 +681,7 @@ class WalletService extends BaseService
 
                         if(!AccountLogModel::insert($log)){
                             DB::rollBack();
-                            echo "【{$dateTime} withdraw】账户[{$toAddress}]从[{$address}]提现记录[{$txid}],平台账户明细处理失败\n";
+                            echo "【{$dateTime} withdraw】账户[{$toAddress}]从[{$address}]提现记录[{$txid}]金额[{$amount}],平台账户明细处理失败\n";
                             RedisService::set($cacheKey.'error', ['error'=>'平台账户明细处理失败','log'=>$log,'info'=> $info,'data'=> $v], 7200);
                             continue;
                         }