From f6be64b2748eccdbbd0a2f2c022ca9d03c2bd66e Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Wed, 18 May 2022 12:16:10 +0800 Subject: [PATCH] notify --- app/Endpoint/Api/Http/Controllers/Account/UserController.php | 1 + app/Services/PayService.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Endpoint/Api/Http/Controllers/Account/UserController.php b/app/Endpoint/Api/Http/Controllers/Account/UserController.php index 5c74521f..31835371 100644 --- a/app/Endpoint/Api/Http/Controllers/Account/UserController.php +++ b/app/Endpoint/Api/Http/Controllers/Account/UserController.php @@ -27,6 +27,7 @@ class UserController extends Controller 'phone' => $user->phone, 'user_info' => UserInfoResource::make($user->userInfo), 'is_vip' => $user->isVip(), + 'vip_expired' => $user->vip_expired?->timestamp, 'wallet' => UserWalletResource::make($user->wallet), 'balance' => UserBalanceResource::make($user->balance), ]); diff --git a/app/Services/PayService.php b/app/Services/PayService.php index 7e17949b..f6a3bea2 100644 --- a/app/Services/PayService.php +++ b/app/Services/PayService.php @@ -71,7 +71,7 @@ class PayService 'status' => Order::STATUS_PAID, ]); } else if ($payable instanceof \App\Models\UserVip) { - (new App\Services\VipService())->success($payable, ['pay_at' => $payLog->pay_at]); + (new \App\Services\VipService())->success($payable, ['pay_at' => $payLog->pay_at]); } return $payLog;