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'];