|
@@ -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);
|
|
|
+ }
|
|
|
}
|