同步线上直接修改的代码:处方 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:
co-authored by
Claude Opus 5
parent
580444731b
commit
5ea3417e4c
@@ -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',
|
||||
|
||||
@@ -10,7 +10,7 @@ return [
|
||||
'lease_seconds' => 600,
|
||||
'max_attempts' => 3,
|
||||
'max_manual_retries' => 2,
|
||||
'daily_model_tasks' => (int) env('prescription_analysis.DAILY_MODEL_TASKS', 200),
|
||||
'daily_model_tasks' => (int) env('prescription_analysis.DAILY_MODEL_TASKS', 5000),
|
||||
// Analyses of one prescription per day. Regenerating after each change is the normal way to
|
||||
// review a case, so this is a budget guard, not a correctness limit.
|
||||
'daily_patient_batches' => (int) env('prescription_analysis.DAILY_PATIENT_BATCHES', 20),
|
||||
|
||||
@@ -113,10 +113,10 @@ return [
|
||||
'order_edit_all_roles' => [0, 3, 4, 9, 6],
|
||||
|
||||
// 处方库:以下角色ID + 超级管理员(root) 可查看/编辑/删除全部;他人仅可管理自己创建的,公开处方对他人只读
|
||||
'prescription_library_manage_all_roles' => [0, 3, 4, 9, 6],
|
||||
'prescription_library_manage_all_roles' => [0, 3, 4, 9, 6, 13],
|
||||
|
||||
// 消费者处方单:以下角色 + root 可对「待审核」处方进行通过/驳回(驳回即作废处方)
|
||||
'prescription_audit_roles' => [0, 3, 4, 9, 6],
|
||||
'prescription_audit_roles' => [0, 3, 4, 9, 6, 13],
|
||||
|
||||
// 处方业务订单 internal_cost 等财务字段:以下角色 ID + root 可见
|
||||
'prescription_order_finance_roles' => [0, 3, 4, 9, 6],
|
||||
|
||||
Reference in New Issue
Block a user