|
|
@@ -13,6 +13,7 @@ use Illuminate\Support\Facades\Log;
|
|
|
use App\Services\BaseService;
|
|
|
use DragonCode\PrettyArray\Services\Formatters\Base;
|
|
|
use Telegram\Bot\Exceptions\TelegramResponseException;
|
|
|
+
|
|
|
class SendTelegramGroupMessageJob implements ShouldQueue
|
|
|
{
|
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
@@ -42,17 +43,15 @@ class SendTelegramGroupMessageJob implements ShouldQueue
|
|
|
|
|
|
public function handle()
|
|
|
{
|
|
|
-
|
|
|
try {
|
|
|
BaseService::bettingGroupNotice($this->text, $this->buttons, $this->image, $this->isTop, $this->separator);
|
|
|
} catch (TelegramResponseException $e) {
|
|
|
-
|
|
|
try {
|
|
|
BaseService::bettingGroupNotice($this->text, $this->buttons, $this->image, $this->isTop, $this->separator);
|
|
|
- }catch (TelegramResponseException $e){
|
|
|
+ } catch (TelegramResponseException $e) {
|
|
|
try {
|
|
|
BaseService::bettingGroupNotice($this->text, $this->buttons, $this->image, $this->isTop, $this->separator);
|
|
|
- }catch (TelegramResponseException $e){
|
|
|
+ } catch (TelegramResponseException $e) {
|
|
|
Log::error('Telegram 消息发送失败: ' . $e->getMessage());
|
|
|
Log::error("失败消息: \n" . $this->text);
|
|
|
}
|