From 11fc23a322eecd7234a2f388ca2cdca064fe1e1d Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Wed, 26 Jun 2024 15:18:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A0=B8=E9=94=80=E7=A4=BC?= =?UTF-8?q?=E5=93=81=E5=88=B8=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/order/OrderLogic.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/logic/order/OrderLogic.php b/app/api/logic/order/OrderLogic.php index bddf25345..93fc43001 100644 --- a/app/api/logic/order/OrderLogic.php +++ b/app/api/logic/order/OrderLogic.php @@ -436,7 +436,8 @@ class OrderLogic extends BaseLogic $order=StoreOrder::where('id',$data['id'])->find(); PayNotifyLogic::afterPay($order); PayNotifyLogic::descStock($order['id']); - if($order['uid']){ + + if($order['uid'] && $order['total_price'] > 500){ $user_number = bcmul($order['pay_price'], '0.10', 2); User::where('id', $order['uid'])->inc('integral', $user_number)->update(); UserSign::where(['uid' => $order['uid'],'order_id' => $order['order_id']])->update(['status'=>1]);