notify
parent
83e8e29de3
commit
f6be64b274
|
|
@ -27,6 +27,7 @@ class UserController extends Controller
|
||||||
'phone' => $user->phone,
|
'phone' => $user->phone,
|
||||||
'user_info' => UserInfoResource::make($user->userInfo),
|
'user_info' => UserInfoResource::make($user->userInfo),
|
||||||
'is_vip' => $user->isVip(),
|
'is_vip' => $user->isVip(),
|
||||||
|
'vip_expired' => $user->vip_expired?->timestamp,
|
||||||
'wallet' => UserWalletResource::make($user->wallet),
|
'wallet' => UserWalletResource::make($user->wallet),
|
||||||
'balance' => UserBalanceResource::make($user->balance),
|
'balance' => UserBalanceResource::make($user->balance),
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ class PayService
|
||||||
'status' => Order::STATUS_PAID,
|
'status' => Order::STATUS_PAID,
|
||||||
]);
|
]);
|
||||||
} else if ($payable instanceof \App\Models\UserVip) {
|
} 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;
|
return $payLog;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue