M7: 全量测试(25 用例)+ README + 部署文档(nginx/systemd/cron)+ theme:publish 命令

This commit is contained in:
ak
2026-08-11 18:48:16 +08:00
parent 933736cfdd
commit fb9175402a
12 changed files with 802 additions and 65 deletions
@@ -1,15 +1,19 @@
<?php
namespace Plugins\Neatstudio\AiModeration;
namespace Plugins\Neatstudio\AiModeration\Jobs;
use App\Blog\Jobs\AiJob;
use App\Blog\Services\LlmClient;
use App\Blog\Support\WorkermanBroadcaster;
use App\Models\Comment;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Support\Facades\Log;
class AiModerateCommentJob implements AiJob
class AiModerateCommentJob implements AiJob, ShouldQueue
{
use Queueable;
public function __construct(public int $commentId)
{
}
@@ -1,13 +1,18 @@
<?php
namespace Plugins\Neatstudio\AiModeration;
namespace Plugins\Neatstudio\AiModeration\Jobs;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use App\Blog\Jobs\AiJob;
use App\Blog\Services\LlmClient;
use App\Models\Post;
class AiPolishContentJob implements AiJob
class AiPolishContentJob implements AiJob, ShouldQueue
{
use Queueable;
public function __construct(public int $postId)
{
}