mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	add onetime plan
This commit is contained in:
		| @@ -29,7 +29,7 @@ class PlanController extends Controller | |||||||
|                 abort(500, '该订阅不存在'); |                 abort(500, '该订阅不存在'); | ||||||
|             } |             } | ||||||
|             DB::beginTransaction(); |             DB::beginTransaction(); | ||||||
|             if ($params->group_id !== $plan->group_id) { |             if (isset($params->group_id) && ($params->group_id !== $plan->group_id)) { | ||||||
|                 if (!User::where('plan_id', $plan->id) |                 if (!User::where('plan_id', $plan->id) | ||||||
|                     ->get() |                     ->get() | ||||||
|                     ->update(['group_id', $plan->group_id]) |                     ->update(['group_id', $plan->group_id]) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user