Tree hace 2 semanas
padre
commit
92507086c8
Se han modificado 1 ficheros con 9 adiciones y 2 borrados
  1. 9 2
      app/Http/Controllers/Game/WebRouteController.php

+ 9 - 2
app/Http/Controllers/Game/WebRouteController.php

@@ -152,8 +152,13 @@ class WebRouteController extends Controller
         if(env('CONFIG_24680_NFTD_99',0)==0)if($config->Channel==99)$firstBonus=0;
         if(env('CONFIG_24680_NFTD_99',0)==0)if($config->Channel==99)$firstBonus=0;
 
 
         $registerBonus = SystemStatusInfo::OnlyGetCacheValue('GrantScoreCountNew') ?? 1000;
         $registerBonus = SystemStatusInfo::OnlyGetCacheValue('GrantScoreCountNew') ?? 1000;
-        $chat = SystemStatusInfo::OnlyGetCacheValue('Telegram') ?? "https://m.me/930365713484502";
 
 
+        $chat = DB::connection('write')->table('QPAccountsDB.dbo.SystemStatusInfo')
+            ->where('StatusName', 'Telegram')
+            ->first();
+
+
+//        $chat = "https://m.me/930365713484502";
         // 默认推荐游戏
         // 默认推荐游戏
         $defaultGameId = 931;
         $defaultGameId = 931;
         $recommendGame = '/game/' . $defaultGameId;
         $recommendGame = '/game/' . $defaultGameId;
@@ -258,7 +263,9 @@ class WebRouteController extends Controller
 
 
             'getStateToWhereRaw' =>RouteService::getStateToWhereRaw($request),
             'getStateToWhereRaw' =>RouteService::getStateToWhereRaw($request),
 
 
-            'serviceLink' => $chat,
+//            'serviceLink' => $chat,
+            'serviceLink' => $chat?$chat->StatusString:'https://m.me/930365713484502',
+
             'vipConfig' => VipService::getVipLevelConfig(),
             'vipConfig' => VipService::getVipLevelConfig(),
 
 
             'popWheel'=>0,
             'popWheel'=>0,