同步线上直接修改的代码:处方 AI 队列派发与重试额度、角色 13 处方权限

以下改动此前只在生产服务器上直接修改,未进仓库,现按线上文件原样收回:
- 处方 AI:新增 prescription-ai:dispatch 每分钟派发单轮队列(PrescriptionAiDispatch、
  PrescriptionAiLaneGuard 队列锁),work 命令支持 --scheduled;重试接口返回与轮询一致的
  任务状态,额度用尽时提示最早可重试时间;每日模型任务默认额度 200 → 5000
- 定时任务 SQL:database/migrations/2026_12_02_prescription_ai_crontab.sql(线上已执行)
- project.php:prescription_library_manage_all_roles / prescription_audit_roles 加入角色 13

Co-Authored-By: Claude Opus 5 <[EMAIL]>
This commit is contained in:
Your Name
2026-12-05 10:27:47 +08:00
co-authored by Claude Opus 5
parent 580444731b
commit 5ea3417e4c
10 changed files with 310 additions and 32 deletions
+1
View File
@@ -19,6 +19,7 @@ return [
'followup-audio:probe' => 'app\\command\\FollowupAudioProbe',
'followup-audio:cleanup' => 'app\\command\\FollowupAudioCleanup',
'prescription-ai:work' => 'app\\command\\PrescriptionAiWork',
'prescription-ai:dispatch' => 'app\\command\\PrescriptionAiDispatch',
'prescription-ai:backfill' => 'app\\command\\PrescriptionAiBackfill',
// 定时任务
'crontab' => 'app\common\command\Crontab',