Ken 2 viikkoa sitten
vanhempi
commit
522a5cf47e
1 muutettua tiedostoa jossa 4 lisäystä ja 3 poistoa
  1. 4 3
      app/Services/TopUpService.php

+ 4 - 3
app/Services/TopUpService.php

@@ -213,8 +213,9 @@ class TopUpService
         } //
         //手动
         else {
-            $address = Config::where('field', 'receiving_address')->first()->val;
-            if ($type === "ERC20") {
+            if ($type === "TRC20") {
+                $address = Config::where('field', 'receiving_address')->first()->val;
+            } else if ($type === "ERC20") {
                 $address = Config::where('field', 'receiving_address_erc20')->first()->val;
             }
             $res = WalletService::getPlatformImageAddress($address);
@@ -229,7 +230,7 @@ class TopUpService
         } else {
             $caption .= "支持货币({$res['net']}):{$res['coin']}\n";
             $caption .= "专属收款地址:\n";
-            $caption .= "{$address}\n";
+            $caption .= "{$type}:{$address}\n";
             $caption .= "\n";
             $caption .= "⚠️提示:\n";
             $caption .= "- 如果上面地址和二维码不一致,请不要付款!\n";