Преглед изворни кода

Weenier 168otc项目部署 0630

wesmiler пре 3 година
родитељ
комит
6abb1cbdf9
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6 6
      app/Services/UsdtWalletService.php

+ 6 - 6
app/Services/UsdtWalletService.php

@@ -81,7 +81,7 @@ class UsdtWalletService extends BaseService
      */
     public function getTrxAddress()
     {
-       //try {
+       try {
            $api = new Api(new Client(['base_uri' => $this->config['tron_api_url']]));
 
            $trxWallet = new TRX($api);
@@ -89,11 +89,11 @@ class UsdtWalletService extends BaseService
            $addressData = (array)$addressData;
            return ['wif' => $addressData['privateKey'], 'hexAddress' => $addressData['hexAddress'], 'address' => $addressData['address']];
 
-//       } catch (\Exception $exception){
-//
-//           $this->error = $exception->getMessage();
-//           return false;
-//       }
+       } catch (\Exception $exception){
+
+           $this->error = $exception->getMessage();
+           return false;
+       }
     }
 
     /**