fix(PayNotifyLogic): 修复 xprinter 打印支持

- 将固定的 store_id==21 条件替换为动态获取的 xprinter 配置
- 通过 DictData 模型查询 xprinter 配置,提高灵活性和可维护性
This commit is contained in:
mkm 2025-01-10 11:22:56 +08:00
parent bf936b31fb
commit 3f29aed4ba

View File

@ -652,7 +652,8 @@ class PayNotifyLogic extends BaseLogic
if ($order['uid'] != 1) {
Redis::send('order_wetcha_push_send', ['order' => $order]);
}
if($order['store_id']==21){
$xprinter=DictData::where('type_value','xprinter')->where('name','xprinter_'.$order['store_id'])->where('status',1)->find();
if($xprinter){
Redis::send('order_xprinter_push_send', ['order' => $order]);
}
} catch (\Exception $e) {