Tokumeikoi 5 years ago
parent
commit
378c96d4c7
1 changed files with 0 additions and 4 deletions
  1. 0 4
      app/Http/Controllers/Admin/UserController.php

+ 0 - 4
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, '保存失败');