From 3f29aed4ba5f3f4675d8eb2a0f040d1038f73e55 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 10 Jan 2025 11:22:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(PayNotifyLogic):=20=E4=BF=AE=E5=A4=8D=20xpr?= =?UTF-8?q?inter=20=E6=89=93=E5=8D=B0=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将固定的 store_id==21 条件替换为动态获取的 xprinter 配置 - 通过 DictData 模型查询 xprinter 配置,提高灵活性和可维护性 --- app/common/logic/PayNotifyLogic.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index 5e335f720..dd60215b9 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -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) {