update order change process

This commit is contained in:
Tokumeikoi 2020-02-17 12:25:19 +08:00
parent 1ea307854f
commit 2b69e83132

View File

@ -75,6 +75,7 @@ class OrderController extends Controller
private function getSurplusValue(User $user)
{
$plan = Plan::find($user->plan_id);
$dayPrice = 0;
if ($plan->month_price) {
$dayPrice = $plan->month_price / 30;
} else if ($plan->quarter_price) {