diff --git a/app/api/logic/order/OrderLogic.php b/app/api/logic/order/OrderLogic.php index c875b5ab0..0e3b281d6 100644 --- a/app/api/logic/order/OrderLogic.php +++ b/app/api/logic/order/OrderLogic.php @@ -438,7 +438,7 @@ class OrderLogic extends BaseLogic PayNotifyLogic::afterPay($order); PayNotifyLogic::descStock($order['id']); - if($order['uid'] && $order['total_price'] > 500){ + 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]); diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index 6e7576689..0a6b889a7 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -393,7 +393,7 @@ class PayNotifyLogic extends BaseLogic public static function addUserSing($order) { $user_sing = new UserSign(); - if ($order['uid'] > 0 && $order['total_price'] > 500) { + if ($order['uid'] > 0 && $order['total_price'] >= 500) { $user_number = bcmul($order['pay_price'], '0.10', 2); $sing = [ 'uid' => $order['uid'],