update order change process

This commit is contained in:
Tokumeikoi
2020-02-17 01:27:07 +08:00
parent 15cd13c26c
commit 874648a4c0
2 changed files with 15 additions and 7 deletions

View File

@ -70,6 +70,9 @@ class CheckOrder extends Command
{
$plan = Plan::find($order->plan_id);
// change plan process
if ($order->type === 3) {
$user->expired_at = time();
}
$user->transfer_enable = $plan->transfer_enable * 1073741824;
$user->enable = 1;
$user->u = 0;