Files
laralog/app/Blog/Jobs/AiJob.php
T
gouki 2e052498a5
Build and Deploy / verify (push) Successful in 10s
Build and Deploy / deploy (push) Successful in 20s
feat: AI 任务同步执行、评论垃圾管理、会员导航分组、多 AI 配置
- 评论 AI 审核/文章润色改为同步执行(站点无 queue worker,任务曾永久卡队列,
  导致垃圾评论滞留待审核、润色毫无效果);审核在响应结束后经 terminating 触发
- 评论表:修复 approve 闭包里误嵌入 recordUrl 的坏链;新增「非垃圾」恢复发布、
  批量「标为垃圾」、工具栏「清空垃圾评论」;各操作补充通知反馈
- 会员套餐/订阅/订单移入新导航组「会员」
- LlmClient 支持多服务商 profile;AI 设置页可添加多个 AI 并为审核/润色/封面
  分别指定服务商(不指定用默认配置);封面生成同步支持 profile
- AI 设置页:润色改同步并即时展示结果,按钮加 loading;删除无 workerman 的
  WebSocket 进度区块
2026-10-15 00:06:55 +00:00

18 lines
365 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
declare(strict_types=1);
namespace App\Blog\Jobs;
use App\Blog\Services\LlmClient;
/**
* AI 任务统一接口。站点无常驻 queue worker,任务在响应结束后同步执行
* (comment.created 钩子经 app()->terminating 触发,后台操作直接 dispatchSync)。
*/
interface AiJob
{
public function handle(LlmClient $llm): void;
}