From 7d775aa4bf734f8c8a8278f894fa90616d7516c6 Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Thu, 27 Jun 2024 18:34:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=84=E7=90=86=E5=9B=9E?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/PayNotifyLogic.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index 68780e46a..8dc4245b5 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -206,7 +206,14 @@ class PayNotifyLogic extends BaseLogic OrderLogic::writeOff($params); } self::dealProductLog($order); - self::addFlowLog($order); + $count = UserSign::where([ + 'uid'=>$order['uid'], + 'type'=>1, + 'status'=>0 + ])->count(); + if($count){ + self::addFlowLog($order); + } // if($order['shipping_type'] == 3){ // self::descStock($order['id']); // } @@ -245,7 +252,6 @@ class PayNotifyLogic extends BaseLogic 'order_id' => $order['order_id'], 'title' => '充值获得冻结兑换券', 'financial_pm' => 1, - 'store_id' => $order['store_id'], 'type' => 1, ]; @@ -308,7 +314,6 @@ class PayNotifyLogic extends BaseLogic 'order_id' => $order['order_id'], 'title' => '补冻结兑换券', 'financial_pm' => 0, - 'store_id' => $order['store_id'], 'type' => 1, ]; $data['number'] =$check; @@ -323,7 +328,6 @@ class PayNotifyLogic extends BaseLogic 'order_id' => $order['order_id'], 'title' => '充值获得冻结兑换券', 'financial_pm' => 1, - 'store_id' => $order['store_id'], 'type' => 1, ]; $data['number'] =$check;