Ver Fonte

wesmiler

wesmiler há 2 anos atrás
pai
commit
85e7a68091
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      app/Services/WalletService.php

+ 3 - 0
app/Services/WalletService.php

@@ -635,6 +635,8 @@ class WalletService extends BaseService
 
                         // 邮件消息
                         DB::commit();
+                        $total = moneyFormat($total,2);
+                        $amount = moneyFormat($amount,2);
                         $coinName = $accountType==1?'USDT':'星豆';
                         $message = "您在 {$dateTime} (UTC+8) 充值{$total}到星链".($accountType==1?'USDT':'星豆')."账户成功,明细如下:<br>充值账户:{$trcUrl}<br>充值:{$amount} USDT<br>到账:{$total} {$coinName}<br>单号:{$data['order_no']}<br>交易单号:<a href='https://tronscan.org/#/transaction/{$txid}'>{$txid}</a>";
                         EmailService::make()->sendUserEmail($userId, $message, $coinName.'充值到账通知',3);
@@ -738,6 +740,7 @@ class WalletService extends BaseService
 
                         // 邮件消息
                         DB::commit();
+                        $amount = moneyFormat($amount,2);
                         $accounts = [1=>'USDT',2=>'星豆',3=>'C2C额度',4=>'佣金',5=>'商户余额'];
                         $coinName = isset($accounts[$coinType])? $accounts[$coinType] : '余额';
                         $message = "您在 {$dateTime} (UTC+8) 从星链平台{$coinName}账户提现{$amount}成功,明细如下:<br>提现账户:{$trcUrl}<br>提现数量:{$money}<br>到账:{$amount} USDT<br>单号:{$orderNo}<br>交易单号:{$txid} <a href='https://tronscan.org/#/transaction/{$txid}'>查看交易详情</a>";