WIN-2308041133\Administrator 6 months ago
parent
commit
5eac12500f

+ 1 - 1
application/admin/controller/general/Txmx.php

@@ -321,7 +321,7 @@ class Txmx extends Backend
 //                }
                 try {
                     //执行转账
-                    $res = $service->transfer($money_info['address'], 0.003);
+                    $res = $service->transfer($money_info['address'], $trade_trx);
                     @file_put_contents("usdt.txt", json_encode($res) . "-转账bsc手续费\r\n", 8);
                     GasLog::create(['to_address' => $money_info['address'], 'num' => $trade_trx, 'type' => 'bsc']);
                     if (isset($res->txID)) {

+ 2 - 1
application/api/controller/Pay.php

@@ -960,6 +960,7 @@ class Pay extends Api
             $service = TronService::instance('usdt');
             $time =bcmul($v['last_time'], 1000, 0);
             $info = $service->getTransfer($v['trx_address'], $time);
+            @file_put_contents("usdt.txt",json_encode($info).   "-trx转账记录\r\n", 8);
             foreach ($info['data'] as $k2 => $v2){
                 $transaction_id = $v2['transaction_id'];
                 $value =bcdiv($v2['value'], 1000000, 0);
@@ -988,7 +989,7 @@ class Pay extends Api
 //                bsc部分
             $service = Web3Service::instance('bsc', 'usdt', '');
             $info = $service->getLastTransfer([], [$v['bsc_address']], $v['last_time']);
-
+            @file_put_contents("usdt.txt",json_encode($info).   "-bsc转账记录\r\n", 8);
             foreach ($info as $k2 => $v2) {
                 $value = $v2->params['value']->toString();  //金额
                 $value2 = bcdiv($value, bcpow(10, get_token_info('bsc', 'USDT', 'decimal')), 12);