|
|
@@ -16,7 +16,7 @@ class BaseService
|
|
|
const YES = 1;
|
|
|
const NOT = 0;
|
|
|
|
|
|
- public static $MODEL= "";
|
|
|
+ public static $MODEL = "";
|
|
|
|
|
|
/**
|
|
|
* @description: 模型
|
|
|
@@ -223,8 +223,8 @@ class BaseService
|
|
|
|
|
|
$res = [];
|
|
|
// 为空只发图片
|
|
|
- if(empty($text) && !empty($image)) {
|
|
|
- $botMsg = [
|
|
|
+ if (empty($text) && !empty($image)) {
|
|
|
+ $botMsg = [
|
|
|
'chat_id' => "@{$bettingGroup}",
|
|
|
];
|
|
|
$botMsg['photo'] = InputFile::create($image);
|
|
|
@@ -253,7 +253,7 @@ class BaseService
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
foreach ($texts as $index => $item) {
|
|
|
$botMsg = [
|
|
|
'chat_id' => "@{$bettingGroup}",
|
|
|
@@ -275,10 +275,7 @@ class BaseService
|
|
|
$res[] = $botMsg;
|
|
|
$response = self::telegram()->sendPhoto($botMsg);
|
|
|
} else {
|
|
|
-// if (str_contains($botMsg['text'], '</pre>')){
|
|
|
-// $botMsg['parse_mode'] = 'HTML';
|
|
|
-// }
|
|
|
- $res[] = $botMsg;
|
|
|
+ $res[] = $botMsg;
|
|
|
$response = self::telegram()->sendMessage($botMsg);
|
|
|
}
|
|
|
if ($isTop === true) {
|
|
|
@@ -293,7 +290,7 @@ class BaseService
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
return $res;
|
|
|
}
|
|
|
|