Ken 2 nedēļas atpakaļ
vecāks
revīzija
bf18eee210

+ 1 - 1
app/Http/Controllers/api/TelegramWebHook.php

@@ -107,7 +107,7 @@ class TelegramWebHook extends Controller
                 }
 
                 //选择充值地址
-                if ($data === "topup@@trc20" || $data === "topup@@erc20") {
+                if ($data === "topup@@TRC20" || $data === "topup@@ERC20") {
                     $type = preg_replace('/^topup@@/', '', $data);
                     $telegram->sendMessage([
                         'chat_id'=>$chatId,

+ 2 - 2
app/Services/TopUpService.php

@@ -183,8 +183,8 @@ class TopUpService
 
         $keyboard = [
             [
-                ['text' => 'TRC20', 'callback_data' => "topup@@trc20"],
-                ['text' => 'ERC20', 'callback_data' => 'topUp@@erc20']
+                ['text' => '$TRC20', 'callback_data' => "topup@@TRC20"],
+                ['text' => '$ERC20', 'callback_data' => 'topUp@@ERC20']
             ],
             [
                 ['text' => "🔙返回", 'callback_data' => "topUp@@home"],