mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-11 23:19:05 +00:00
Bark & 企业微信 等显示调整优化
Apply fixes from StyleCI
This commit is contained in:
21
app/Http/Controllers/MessageController.php
Normal file
21
app/Http/Controllers/MessageController.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\NotificationLog;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Mail\Markdown;
|
||||
|
||||
class MessageController extends Controller
|
||||
{
|
||||
public function index(string $type, string $msgId)
|
||||
{
|
||||
if ($type === 'markdown') {
|
||||
$log = NotificationLog::whereMsgId($msgId)->latest()->firstOrFail();
|
||||
$title = $log->title;
|
||||
$content = Markdown::parse($log->content)->toHtml();
|
||||
}
|
||||
|
||||
return view('components.message', compact('title', 'content'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user