From e78569ac4df226faeb899af24691c3eb9ba9f780 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Mon, 26 Aug 2024 16:53:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=88=90=E5=8A=9F=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=95=86=E5=AE=B6=E6=94=B6=E6=AC=BE=E7=9F=AD=E4=BF=A1?= =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/PayNotifyLogic.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index cad7d80e..eab3eb10 100755 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -230,8 +230,23 @@ class PayNotifyLogic if (isset($extra['transaction_id'])) { $d['transaction_id'] = $extra['transaction_id']; } + $result = Db::name("local_pay")->where("order_sn",$order_sn)->find(); + $local_store = Db::name('local_store')->where(['lstore_id' => $result['local_id']])->find(); + if ($local_store['empowerPhone']) { + event('Notice', [ + 'scene' => NoticeEnum::LOCAL_SHOP_COLLECTION_NOTICE, + 'mobile' => $local_store['empowerPhone'], + 'params' => [ + 'user_id' => $local_store['user_id'], + 'money' => $result['order_amount'], + 'time' => date("Y-m-d H:i:s"), + 'order' => $order_sn, + ] + ]); + } + if($result != null){ $d['pay_time'] = date("Y-m-d H:i:s"); $d['pay_status'] = 1;