|
@@ -319,16 +319,16 @@ class Txmx extends Backend
|
|
|
}
|
|
}
|
|
|
try {
|
|
try {
|
|
|
//执行转账
|
|
//执行转账
|
|
|
-// $res = $service->transfer($money_info['address'], $trade_trx);
|
|
|
|
|
-// @file_put_contents("usdt.txt", json_encode($res) . "-转账bsc手续费\r\n", 8);
|
|
|
|
|
|
|
+ $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']);
|
|
GasLog::create(['to_address' => $money_info['address'], 'num' => $trade_trx, 'type' => 'bsc']);
|
|
|
-// if (isset($res->txID)) {
|
|
|
|
|
-// Log::error('转账BSC交易哈希:' . $res->txID);
|
|
|
|
|
-// return true;
|
|
|
|
|
-// } else {
|
|
|
|
|
-// Log::error('转账BSC失败');
|
|
|
|
|
-// return false;
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ if (isset($res->txID)) {
|
|
|
|
|
+ Log::error('转账BSC交易哈希:' . $res->txID);
|
|
|
|
|
+ return true;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ Log::error('转账BSC失败');
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
} catch (\Exception $e) {
|
|
} catch (\Exception $e) {
|
|
|
Log::error('转账BSC失败' . $e->getMessage());
|
|
Log::error('转账BSC失败' . $e->getMessage());
|
|
|
return false;
|
|
return false;
|