Ken 2 недель назад
Родитель
Сommit
78199f8e02
2 измененных файлов с 4 добавлено и 7 удалено
  1. 2 5
      app/Http/Controllers/api/TelegramWebHook.php
  2. 2 2
      app/Services/TopUpService.php

+ 2 - 5
app/Http/Controllers/api/TelegramWebHook.php

@@ -105,12 +105,9 @@ class TelegramWebHook extends Controller
                     $alertText = BetService::recentlyRecord($chatId);
                     BetService::alertNotice($callbackId, $alertText);
                 }
-                $telegram->sendMessage([
-                    'chat_id'=>$chatId,
-                    'text'=>$data
-                ]);
+
                 //选择充值地址
-                if ($data === "topup@@RechargeTRC20" || $data === "topup@@eeeeee") {
+                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@@RechargeTRC20"],
-                ['text' => 'ERC20', 'callback_data' => 'topUp@@eeeeee']
+                ['text' => 'TRC20', 'callback_data' => "topUp@@TRC20"],
+                ['text' => 'ERC20', 'callback_data' => 'topUp@@ERC20']
             ],
             [
                 ['text' => "🔙返回", 'callback_data' => "topUp@@home"],