seven 1 tháng trước cách đây
mục cha
commit
ae3dda5f89
2 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 2 1
      app/Services/BetService.php
  2. 1 0
      sql/sql_prod.sql

+ 2 - 1
app/Services/BetService.php

@@ -249,6 +249,7 @@ class BetService extends BaseService
 
         $username = config('services.telegram.username');
         $serviceAccount = Config::where('field', 'service_account')->first()->val;
+        $officialChannel = Config::where('field', 'official_channel')->first()->val;
         $inlineButton = [];
         $inlineButton[] = [
             ['text' => "查看余额", 'callback_data' => 'balanceAlert'],
@@ -262,7 +263,7 @@ class BetService extends BaseService
             ['text' => "私聊下注", 'url' => "https://t.me/{$username}"]
         ];
         $inlineButton[] = [
-            ['text' => "官方频道", 'url' => 'https://t.me/xxx']
+            ['text' => "官方频道", 'url' => "https://t.me/{$officialChannel}"]
         ];
          // 群通知
         self::bettingGroupNotice($groupText,$inlineButton);   // 群通知

+ 1 - 0
sql/sql_prod.sql

@@ -87,6 +87,7 @@ INSERT INTO `bot_config` VALUES (7, 'channel_message', '{\"chatId\":\"oooluckych
 
 INSERT INTO `bot_config` VALUES (8, 'betting_group', '+8jhXv9Eb-oRmZDY1', '2025-07-07 17:48:06', '2025-07-07 17:48:06', '投注群');
 INSERT INTO `bot_config` VALUES (9, 'rebate', '0', '2025-07-07 17:48:06', '2025-07-07 17:48:06', '返佣比例');
+INSERT INTO `bot28`.`bot_config` (`id`, `field`, `val`, `updated_at`, `created_at`, `remark`) VALUES ('10', 'official_channel', 'ABCDE_123y', '2025-07-07 17:48:06', '2025-07-07 17:48:06', '官方频道');
 
 
 -- ----------------------------