seven 1 settimana fa
parent
commit
6a0d33f00d
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      app/Services/IssueService.php

+ 5 - 0
app/Services/IssueService.php

@@ -246,6 +246,11 @@ class IssueService extends BaseService
                 if($image){
                     $image = url($image);
                 }
+                if(empty($buttons)){
+                    $serviceAccount = Config::where('field', 'service_account')->first()->val;
+                    $buttons = [['text' => '✅ 唯一客服', 'callback_data' => "", 'url' => "https://t.me/{$serviceAccount}"]];
+
+                }
                 self::bettingGroupNotice($text, $buttons, $image);
             }