Ken 2 tygodni temu
rodzic
commit
4952713498
1 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 3
      app/Services/TopUpService.php

+ 2 - 3
app/Services/TopUpService.php

@@ -213,9 +213,8 @@ class TopUpService
         } //
         //手动
         else {
-            if ($type === "TRC20") {
-                $address = Config::where('field', 'receiving_address')->first()->val;
-            } elseif ($type === "ERC20") {
+            $address = Config::where('field', 'receiving_address')->first()->val;
+            if ($type === "ERC20") {
                 $address = Config::where('field', 'receiving_address_erc20')->first()->val;
             }
             $res = WalletService::getPlatformImageAddress($address);