seven 5 gün önce
ebeveyn
işleme
3f32569dfd
2 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  1. 6 0
      app/Services/BaseService.php
  2. 1 0
      app/Services/IssueService.php

+ 6 - 0
app/Services/BaseService.php

@@ -7,6 +7,7 @@ use Endroid\QrCode\Writer\PngWriter;
 use Telegram\Bot\Api;
 use App\Models\Config;
 use Telegram\Bot\FileUpload\InputFile;
+use Illuminate\Support\Facades\Log;
 
 class BaseService 
 {
@@ -167,4 +168,9 @@ class BaseService
             'show_alert' => true // 显示为弹窗
         ]);
     }
+
+    public static function log($message, $context = [])
+    {
+        Log::error($message, $context);
+    }
 }

+ 1 - 0
app/Services/IssueService.php

@@ -151,6 +151,7 @@ class IssueService extends BaseService
         // $text .= "🔥🔥🔥🔥🔥开始下注🔥🔥🔥🔥🔥\n";
         $replyInfo = KeyboardService::findOne(['button' => '开始下注']);
         if($replyInfo){
+            self::log('开始下注通知: '.json_encode($replyInfo));
             $text = $replyInfo->reply;
             $buttons = json_decode($replyInfo->buttons,true);
             $image = $replyInfo->image;