Ken 2 weeks ago
parent
commit
50f8af2cf0
2 changed files with 3 additions and 2 deletions
  1. 2 1
      app/Services/TopUpService.php
  2. 1 1
      app/Services/WalletService.php

+ 2 - 1
app/Services/TopUpService.php

@@ -219,13 +219,14 @@ class TopUpService
                 $address = Config::where('field', 'receiving_address_erc20')->first()->val;
             }
             $res = WalletService::getPlatformImageAddress($address);
+            $res['net'] = $type;
             $qrCode = $res['full_path'];
             Cache::put("{$chatId}_TOP_UP_ADDRESS", $address);
         }
 
         $replyInfo = KeyboardService::findOne(['button' => '充值提示文字']);
         $caption = "\n";
-        $caption.="网络类型:{$type}\n";
+        $caption .= "网络类型:{$type}\n";
         if ($replyInfo) {
             $caption .= "{$replyInfo->reply}\n\n";
         } else {

+ 1 - 1
app/Services/WalletService.php

@@ -199,7 +199,7 @@ class WalletService extends BaseService
         // $host = config('app.url'); // 通常在 .env 中配置 APP_URL
         return [
             'coin' => 'USDT',
-            'net' => 'TRC20',
+            'net' => "TRC20",
             'address' => $address,
             'path' => $path,
             'full_path' => asset($path)