From 1c6cb9b1a5881947256bcce2f100aac5270a37fb Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 18 Jun 2024 10:16:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor(PayNotifyLogic):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E7=B1=BB=E5=9E=8B=E4=B8=BA9=E7=9A=84?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/PayNotifyLogic.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index 48a0c0a6d..fe735a893 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -155,11 +155,11 @@ class PayNotifyLogic extends BaseLogic } - if ($order->pay_type == 9) { - $extra['create_time'] = $order['create_time']; + // if ($order->pay_type == 9) { + // $extra['create_time'] = $order['create_time']; // PushService::push('store_merchant_' . $order['store_id'], $order['store_id'], ['type' => 'cash_register', 'msg' => '您有一笔订单已支付', 'data' => $extra]); - Redis::send('push-platform-print', ['id' => $order['id']]); - } + // Redis::send('push-platform-print', ['id' => $order['id']]); + // } // else { // PushService::push('store_merchant_' . $order['store_id'], $order['store_id'], ['type' => 'store_merchant', 'msg' => '您有一笔新的订单']); // Db::name('order_middle')->insert(['c_order_id' => $order['id']]); @@ -251,7 +251,7 @@ class PayNotifyLogic extends BaseLogic } $cashFlowLogic = new CashFlowLogic(); $cashFlowLogic->insert($order['store_id'], $order['pay_price']); - Redis::send('push-platform-print', ['id' => $order['id']]); + // Redis::send('push-platform-print', ['id' => $order['id']]); } /** @@ -282,11 +282,11 @@ class PayNotifyLogic extends BaseLogic self::afterPay($order); } - if ($order->pay_type == 9) { - $extra['create_time'] = $order['create_time']; + // if ($order->pay_type == 9) { + // $extra['create_time'] = $order['create_time']; // PushService::push('store_merchant_' . $order['store_id'], $order['store_id'], ['type' => 'cash_register', 'msg' => '您有一笔订单已支付', 'data' => $extra]); - Redis::send('push-platform-print', ['id' => $order['id']]); - } + // Redis::send('push-platform-print', ['id' => $order['id']]); + // } // else { // PushService::push('store_merchant_' . $order['store_id'], $order['store_id'], ['type' => 'store_merchant', 'msg' => '您有一笔新的订单']); // }