Bark & 企业微信 等显示调整优化

Apply fixes from StyleCI
This commit is contained in:
兔姬桑
2022-01-16 22:52:37 +08:00
parent 0d1cf0d9fe
commit 12d4365fe4
31 changed files with 286 additions and 82 deletions

View 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'));
}
}