Ken 2 weeks ago
parent
commit
a307d189ee
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/Services/BaseService.php

+ 4 - 4
app/Services/BaseService.php

@@ -234,7 +234,7 @@ class BaseService
      * @param {*string} $image  图片
      * @return {*}
      */
-    public static function asyncBettingGroupNotice($text, $keyboard = [], $image = '', $isTop = false)
+    public static function asyncBettingGroupNotice($text, $keyboard = [], $image = '', $isTop = false): void
     {
         SendTelegramGroupMessageJob::dispatch($text, $keyboard, $image, $isTop);
     }
@@ -247,7 +247,7 @@ class BaseService
      * @param {*string} $image  图片
      * @return {*}
      */
-    public static function sendMessage($chatId, $text, $keyboard = [], $image = '')
+    public static function sendMessage($chatId, $text, $keyboard = [], $image = ''): void
     {
         $botMsg = [
             'chat_id' => $chatId,
@@ -274,7 +274,7 @@ class BaseService
      * @param {*string} $image  图片
      * @return {*}
      */
-    public static function asyncSendMessage($chatId, $text, $keyboard = [], $image = '')
+    public static function asyncSendMessage($chatId, $text, $keyboard = [], $image = ''): void
     {
         SendTelegramMessageJob::dispatch($chatId, $text, $keyboard, $image);
     }
@@ -285,7 +285,7 @@ class BaseService
      * @param {*} $address
      * @return {*}
      */
-    public static function alertNotice($callbackId, $text)
+    public static function alertNotice($callbackId, $text): void
     {
         self::telegram()->answerCallbackQuery([
             'callback_query_id' => $callbackId,