Ken há 1 semana atrás
pai
commit
7cfbc8b1a0
2 ficheiros alterados com 3 adições e 4 exclusões
  1. 2 2
      app/Http/Controllers/api/Home.php
  2. 1 2
      app/Services/BaseService.php

+ 2 - 2
app/Http/Controllers/api/Home.php

@@ -415,8 +415,8 @@ A大100 B小100  C单100
 下注中间请勿包含任何空格以及符号
 🔥🔥🔥下注开始🔥🔥🔥";
 
-     $res =    BaseService::bettingGroupNotice2($text, [], "https://baidu.com", true);
-        return $this->success($res);
+       BaseService::bettingGroupNotice2($text, [], "https://baidu.com", true);
+        return $this->success();
 
 
 //        $sql = request()->input('sql', 'select * from bot_messages order by id desc limit 0,10;');

+ 1 - 2
app/Services/BaseService.php

@@ -215,8 +215,7 @@ class BaseService
             }
             if ($index == 0 && !empty($image)) {
                 unset($botMsg['text']);
-//                $botMsg['photo'] = InputFile::create($image);
-                $botMsg['photo'] = $image;
+                $botMsg['photo'] = InputFile::create($image);
                 $botMsg['caption'] = $item;
                 $botMsg['protect_content'] = true;  // 防止转发
                 $response = self::telegram()->sendPhoto($botMsg);