diff --git a/app/api/controller/store/StoreController.php b/app/api/controller/store/StoreController.php index 666bc0fe2..369c9709a 100644 --- a/app/api/controller/store/StoreController.php +++ b/app/api/controller/store/StoreController.php @@ -103,6 +103,7 @@ class StoreController extends BaseApiController 'order_id'=>getNewOrderId('CZ'), 'price'=>$params['price']??1000, 'recharge_type'=>'INDUSTRYMEMBERS', + 'user_ship'=>$params['user_ship']??0, ]; $order = UserRecharge::create($data); diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index e746a956b..2105d0434 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -652,14 +652,8 @@ class PayNotifyLogic extends BaseLogic bcscale(2); // $user->now_money = bcadd($user->now_money, $price, 2);//v.1 //更新等级 - $limit_1=UserShip::where('id',1)->value('limit'); - $limit_4=UserShip::where('id',4)->value('limit'); - if ($price >= $limit_1 &&$price<$limit_4) { - $user->user_ship = 1; //v.1 - } - if ($price>$limit_4) { - $user->user_ship = 4; - } + $user->user_ship = $order['user_ship']; + $user->purchase_funds = bcadd($user->purchase_funds, $price, 2); $user->total_recharge_amount = bcadd($user->total_recharge_amount, $price, 2); $user->save();