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();