From d46d6139a00f96f76d28883b57ed5067163739ac Mon Sep 17 00:00:00 2001
From: liu <1873441552@qq.com>
Date: Fri, 28 Jun 2024 16:49:53 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=87=87=E8=B4=AD=E6=AC=BE?=
 =?UTF-8?q?=E4=B8=8B=E5=8D=95=E4=B8=8D=E5=8F=8D=E5=85=91=E6=8D=A2=E5=88=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/common/logic/PayNotifyLogic.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php
index 8cc60abb3..944bb7a2a 100644
--- a/app/common/logic/PayNotifyLogic.php
+++ b/app/common/logic/PayNotifyLogic.php
@@ -778,7 +778,7 @@ class PayNotifyLogic extends BaseLogic
             $financeLogic->in($transaction_id, $order['pay_price'], OrderEnum::SUPPLIER_ORDER_OBTAINS, $order['store_id'], 0, 0, $order['pay_type']);
             $financeLogic->out($transaction_id, $order['pay_price'], OrderEnum::SUPPLIER_ORDER_OBTAINS, $order['store_id'], $order['staff_id'], 0, $order['pay_type']);
             $financeLogic->save();
-            if ($order['uid'] > 0  && $order['total_price'] >= 500 ) {
+            if ($order['uid'] > 0  && $order['total_price'] >= 500 && $order['pay_type'] !=PayEnum::PURCHASE_FUNDS) {
                 $user_number = bcmul($order['pay_price'], '0.10', 2);
                 $sing = [
                     'uid' => $order['uid'],
@@ -813,7 +813,7 @@ class PayNotifyLogic extends BaseLogic
                 $order['pay_price'] = bcsub($order['pay_price'], $vipFrozenAmount, 2);
                 self::dealVipAmount($order,  $order['pay_type']);
             }
-            if($order['total_price'] >= 500 ){
+            if($order['total_price'] >= 500 && $order['pay_type'] !=PayEnum::PURCHASE_FUNDS){
                 $user_number = bcmul($order['pay_price'], '0.10', 2);
                 $sing = [
                     'uid' => $order['uid'],