$typeCode
$typeCode : string
队列编码(注册表锚点,处理器据此读取界面配置)
短信发送任务
职责:载荷 {phone, data} + 注册表 template_code → SmsService::sendByTemplate 发送。 发送失败语义:sent=false(未配通道等)抛 RuntimeException 走重试/终败, 失败原因带内容入台账(可界面查因);HTTP 异常由驱动自然上抛同链路处理。 骨架单源:SendChannelJob(注册表校验 + sent 校验)。
$typeCode : string
队列编码(注册表锚点,处理器据此读取界面配置)
$data : array
载荷内容(schema 校验后的业务数据,执行台账全量快照)。 命名 $data 而非 $payload:InteractsWithQueue 以 __get('payload') 读取队列原始载荷 (attempts() 依赖它),同名属性会遮蔽魔术方法导致重试计数恒为 1——命名冲突不可犯。
$logId : int
执行台账行 id(状态推进锚点)
__construct(string $typeCode, array $payload, int $logId) : mixed
构造:从注册表动态应用重试策略——tries/backoff/timeout/queue 全部界面配置; afterCommit 在此赋值(Queueable 声明同属性默认 false,类内重复声明被 PHP 判为 不兼容——事务提交后投递统一规避 after_commit=false 的抢跑竞态,业务方零感知)。
| string | $typeCode | |
| array | $payload | |
| int | $logId |
队列未登记