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;