mirror of
https://github.com/v2board/v2board.git
synced 2024-11-14 07:29:13 +08:00
update
This commit is contained in:
parent
e8b6f1b481
commit
c271647ecc
@ -77,9 +77,10 @@ class OrderController extends Controller
|
|||||||
private function getSurplusValue(User $user)
|
private function getSurplusValue(User $user)
|
||||||
{
|
{
|
||||||
$plan = Plan::find($user->plan_id);
|
$plan = Plan::find($user->plan_id);
|
||||||
switch ($plan->type) {
|
if ($user->expired_at === NULL) {
|
||||||
case 0: return $this->getSurplusValueByCycle($user, $plan);
|
return $this->getSurplusValueByOneTime($user, $plan);
|
||||||
case 1: return $this->getSurplusValueByOneTime($user, $plan);
|
} else {
|
||||||
|
return $this->getSurplusValueByCycle($user, $plan);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user