1
0
forked from erp-dev/erp

feat: wecomm notification support command

This commit is contained in:
2026-01-23 16:11:03 +08:00
parent 88688f9481
commit 34483e9753
5 changed files with 217 additions and 5 deletions

View File

@@ -271,12 +271,13 @@ else:
# - 默认:测试环境关闭(避免单测出网/刷屏),非测试环境开启
PRINTING_JOB_STATE_ADVANCED_WECOM_NOTIFY_ENABLED = (not TESTING)
PRINTING_JOB_STATE_ADVANCED_WECOM_MARKDOWN_TEMPLATE = (
"### PrintingJob 状态推进\n"
"### 印染任务状态推进\n"
"\n"
"- **PrintingOrder.id**: `{printing_order_id}`\n"
"- **PrintingJob.id**: `{printing_job_id}`\n"
"- **State**: **{state_name}**\n"
"- **AdvancedAt**: `{advanced_at}`\n"
"- **印染订单ID**`{printing_order_id}`\n"
"- **印染任务ID**`{printing_job_id}`\n"
"- **推进状态****{state_name}**\n"
"- **推进时间**`{advanced_at}`\n"
"- **发送者**{sender}\n"
)