From fb5fe6574ab0cdeb3ffeedbf333e4b6e6830f810 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 25 Jul 2024 09:46:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(UserLists.php):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BC=9A=E5=91=98=E7=AD=89=E7=BA=A7=E5=88=A4=E6=96=AD=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/admin/lists/user/UserLists.php | 2 +- app/common/logic/PayNotifyLogic.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/admin/lists/user/UserLists.php b/app/admin/lists/user/UserLists.php index 83a7a878..2393366f 100644 --- a/app/admin/lists/user/UserLists.php +++ b/app/admin/lists/user/UserLists.php @@ -62,7 +62,7 @@ class UserLists extends BaseAdminDataLists implements ListsExcelInterface,ListsS if($item['vip_name']== null){ $item['vip_name'] = '普通会员'; } - if($item['vip_name']!= null){ + if($item['vip_time']!= null){ $item['vip_time'] = date('Y-m-d H:i:s', strtotime($item['vip_time'])); } if($item['label_name']== null){ diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index 04bc3d2b..c4b03a1a 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -451,7 +451,9 @@ class PayNotifyLogic extends BaseLogic //更新等级 $user->user_ship = $order['user_ship']; - + if($user['vip_time']==null){ + $user->vip_time = time(); + } $user->purchase_funds = bcadd($user->purchase_funds, $price, 2); $user->total_recharge_amount = bcadd($user->total_recharge_amount, $price, 2); $user->save();