Ken преди 2 дни
родител
ревизия
cc1c3ad5da
променени са 2 файла, в които са добавени 1 реда и са изтрити 19 реда
  1. 1 0
      app/Http/Controllers/admin/Keyboard.php
  2. 0 19
      app/Services/BaseService.php

+ 1 - 0
app/Http/Controllers/admin/Keyboard.php

@@ -86,6 +86,7 @@ class Keyboard extends Controller
                 'buttons' => ['array'],
                 'buttons.*' => ['array', 'min:1'],
                 'buttons.*.*.text' => ['required', 'string', 'min:1'],
+                'buttons.*.*.url' => ['required', 'string', 'min:1'],
             ];
             if (empty($id)) {
                 unset($validator['id']);

+ 0 - 19
app/Services/BaseService.php

@@ -437,27 +437,8 @@ abstract class BaseService
             }
             $inlineButton = array_values($inlineButton);
             return $inlineButton;
-
-
         }
-        // $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'],
-        //     ['text' => "✅唯一财务", 'url' => "https://t.me/{$serviceAccount}"]
-        // ];
-        // $inlineButton[] = [
-        //     ['text' => "近期注单", 'callback_data' => 'betsAlert'],
-        //     ['text' => "今日流水", 'callback_data' => 'todayFlowAlert']
-        // ];
-        // $inlineButton[] = [
-        //     ['text' => "私聊下注", 'url' => "https://t.me/{$username}"]
-        // ];
-        // $inlineButton[] = [
-        //     ['text' => "官方频道", 'url' => "https://t.me/{$officialChannel}"]
-        // ];
         return $inlineButton;
     }