From 378c96d4c746987ae022ea94482110152de8f3ab Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Mon, 2 Mar 2020 00:33:10 +0800 Subject: [PATCH] remove --- app/Http/Controllers/Admin/UserController.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/Http/Controllers/Admin/UserController.php b/app/Http/Controllers/Admin/UserController.php index a30173a0..82d53f75 100644 --- a/app/Http/Controllers/Admin/UserController.php +++ b/app/Http/Controllers/Admin/UserController.php @@ -78,10 +78,6 @@ class UserController extends Controller abort(500, '订阅计划不存在'); } $params['group_id'] = $plan->group_id; - // plan type is onetime, set expired time 0 - if ($plan->type === 1) { - $user->expired_at = 0; - } } if (!$user->update($params)) { abort(500, '保存失败');