6
0
Fork 0
release
panliang 2022-05-18 12:16:10 +08:00
parent 83e8e29de3
commit f6be64b274
2 changed files with 2 additions and 1 deletions

View File

@ -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),
]);

View File

@ -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;