From 528995259732881b1be215877464b883e1e0aae6 Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Fri, 5 Jul 2024 17:22:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E5=BA=94=E5=85=85=E5=80=BC=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/PayNotifyLogic.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index 4dac5898d..c95933ca1 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -447,6 +447,32 @@ class PayNotifyLogic extends BaseLogic bcscale(2); UserSignLogic::dealRechargeFrozen($user, $order, $order['user_ship']); + //写入对应得金额 + if(in_array($order['pay_price'],['0.01','1000','2000','5000','10000'])){ + switch ($order['pay_price']){ + case 0.01: + case 1000: + $total_vip = 249; + break; + case 2000: + $total_vip = 560; + break; + case 5000: + $total_vip = 1550; + break; + case 10000: + $total_vip = 3500; + break; + default: + $total_vip = 1; + } +// $total_vip = bcmul($order['pay_price'], 0.1, 2); + $write = UserSignLogic::write($order, $total_vip, 0, 0, 7); + UserSignLogic::write_log($write, $total_vip, 0, 7); + + $write_get = UserSignLogic::write($order, $total_vip, 0, 1, 7); + UserSignLogic::write_log($write_get, $total_vip, 0, 7); + } //更新等级 $user->user_ship = $order['user_ship'];