seven 1 nedēļu atpakaļ
vecāks
revīzija
ee2dac1595

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

@@ -90,6 +90,11 @@ class TelegramWebHook extends Controller
                     $alertText = WalletService::getBalance($chatId)['text'];
                     WalletService::alertNotice($callbackId , $alertText);
                 }
+                // 今日流水弹窗
+                if($data === 'todayFlowAlert'){
+                    $alertText = BalanceLogService::getTodayFlowing($chatId)['text'];
+                    BalanceLogService::alertNotice($callbackId , $alertText);
+                }
 
                 //近期注单,下一页
                 $pattern = "/^betRecordNextPage@@\d+$/";

+ 2 - 1
app/Services/BetService.php

@@ -248,10 +248,11 @@ class BetService extends BaseService
         $groupText .= "----------- \n";
 
         $username = config('services.telegram.username');
+        $serviceAccount = Config::where('field', 'service_account')->first()->val;
         $inlineButton = [];
         $inlineButton[] = [
             ['text' => "查看余额", 'callback_data' => 'balanceAlert'],
-            ['text' => "✅唯一财务", 'callback_data' => 'financeAlert']
+            ['text' => "✅唯一财务", 'url' => "https://t.me/{$serviceAccount}"]
         ];
         $inlineButton[] = [
             ['text' => "近期注单", 'callback_data' => 'betsAlert'],