药师签署完成后自动将双签处方 PDF 归档到私有 COS

- 药师签署验签通过后,立即把最终双签 PDF 以私有对象上传到后台配置的腾讯云 COS,
  对象键 private/esign/prescription/<环境>/<处方ID>-<sha256>.pdf,带 Content-MD5 校验,不返回任何 URL
- 上传失败不影响签署:记录原因并指数退避,由 esign:archive-work 每分钟补传(最长 1 小时一次)
- 签署日志新增「签署件已归档至云存储」/「归档未完成,系统将自动重试」
- 迁移 2026_11_27_prescription_review_archive.sql:归档字段 + 定时任务登记

Co-Authored-By: Claude Opus 5 (1M context) <[EMAIL]>
This commit is contained in:
Your Name
2026-11-27 14:47:45 +08:00
co-authored by Claude Opus 5 (1M context)
parent dc5467cfa7
commit 90b9fff76a
7 changed files with 288 additions and 20 deletions
+20 -19
View File
@@ -4,21 +4,22 @@
// +----------------------------------------------------------------------
return [
// 指令定义
'commands' => [
'commands' => [
'desktop-session:settle' => 'app\\command\\DesktopSessionSettle',
'esign:setup' => 'app\\command\\EsignSetup',
'esign:setup' => 'app\\command\\EsignSetup',
'esign:archive-work' => 'app\\command\\EsignArchiveWork',
'assistant-service:daily' => 'app\\command\\AssistantServiceDaily',
'assistant-service:alert' => 'app\\command\\AssistantServiceAlert',
'assistant-service:auto' => 'app\\command\\AssistantServiceAuto',
'assistant-service:work' => 'app\\command\\AssistantServiceWork',
'mobile-recording:cos-work' => 'app\\command\\MobileRecordingCosWork',
'mobile-recording:cos-migrate' => 'app\\command\\MobileRecordingCosMigrate',
'mobile-recording:cleanup' => 'app\\command\\MobileRecordingCleanup',
'followup-audio:work' => 'app\\command\\FollowupAudioWork',
'followup-audio:probe' => 'app\\command\\FollowupAudioProbe',
'followup-audio:cleanup' => 'app\\command\\FollowupAudioCleanup',
'prescription-ai:work' => 'app\\command\\PrescriptionAiWork',
'prescription-ai:backfill' => 'app\\command\\PrescriptionAiBackfill',
'assistant-service:auto' => 'app\\command\\AssistantServiceAuto',
'assistant-service:work' => 'app\\command\\AssistantServiceWork',
'mobile-recording:cos-work' => 'app\\command\\MobileRecordingCosWork',
'mobile-recording:cos-migrate' => 'app\\command\\MobileRecordingCosMigrate',
'mobile-recording:cleanup' => 'app\\command\\MobileRecordingCleanup',
'followup-audio:work' => 'app\\command\\FollowupAudioWork',
'followup-audio:probe' => 'app\\command\\FollowupAudioProbe',
'followup-audio:cleanup' => 'app\\command\\FollowupAudioCleanup',
'prescription-ai:work' => 'app\\command\\PrescriptionAiWork',
'prescription-ai:backfill' => 'app\\command\\PrescriptionAiBackfill',
// 定时任务
'crontab' => 'app\common\command\Crontab',
// 退款查询
@@ -44,13 +45,13 @@ return [
'qywx:scan-media-channel' => 'app\\command\\QywxScanMediaChannel',
// 企业微信会话内容存档同步(需开通会话存档 License 并配置 msgaudit_* 相关项 + 动态库)
'qywx:sync-msg-archive' => 'app\\command\\QywxSyncMsgArchive',
// 获客助手 ChatKey 仅 30 分钟有效,部署时应每分钟执行一次
'qywx:retry-customer-acquisition-events' => 'app\\command\\QywxRetryCustomerAcquisitionEvents',
// 回调确认实际承接成员后,按权重/上限切换同一条官方获客链接的成员范围
'qywx:sync-promotion-ranges' => 'app\\command\\QywxSyncPromotionRanges',
'qywx:work-promotion-automation' => 'app\\command\\QywxWorkPromotionAutomation',
'qywx:retry-promotion-automation' => 'app\\command\\QywxRetryPromotionAutomation',
'qywx:refresh-promotion-media' => 'app\\command\\QywxRefreshPromotionMedia',
// 获客助手 ChatKey 仅 30 分钟有效,部署时应每分钟执行一次
'qywx:retry-customer-acquisition-events' => 'app\\command\\QywxRetryCustomerAcquisitionEvents',
// 回调确认实际承接成员后,按权重/上限切换同一条官方获客链接的成员范围
'qywx:sync-promotion-ranges' => 'app\\command\\QywxSyncPromotionRanges',
'qywx:work-promotion-automation' => 'app\\command\\QywxWorkPromotionAutomation',
'qywx:retry-promotion-automation' => 'app\\command\\QywxRetryPromotionAutomation',
'qywx:refresh-promotion-media' => 'app\\command\\QywxRefreshPromotionMedia',
// 甘草订单物流路由同步(GET_TASK_ROUTE_LIST)
'gancao:sync-logistics' => 'app\\command\\GancaoSyncLogisticsRoute',
'ej-pharmacy:sync-catalog' => 'app\\command\\EjPharmacySyncCatalog',