中文站Invoice邮件出现英文主站Logo。邮件Logo取决于订单Store环境和Transactional Email配置。
固定复现范围
记录Invoice所属order.store_id、模板ID和异步发送配置,在目标Store Scope检查Logo和模板。
定位真实原因
自定义发送代码以订单Store构造Template Options,并用Environment Emulation包裹渲染,finally停止模拟。
执行修复
队列消息保存store_id,Consumer不能在默认Store渲染;图片URL使用订单Store的secure Base URL。
恢复后处理
清配置/模板缓存后发送两个Store测试邮件,不能在HTML硬编码主域名。
SELECT i.increment_id,o.store_id FROM sales_invoice i JOIN sales_order o ON o.entity_id=i.order_id WHERE i.increment_id='INV-1';
bin/magento config:show design/email/logo --scope=stores --scope-code=zh_cn回归测试
两个Store的Logo、语言、发件人和链接域名均正确,交叉发送顺序不会串站。

