mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	update: order
This commit is contained in:
		| @@ -78,7 +78,7 @@ class OrderController extends Controller | |||||||
|  |  | ||||||
|         if ((!$plan->show && !$plan->renew) || (!$plan->show && $user->plan_id !== $plan->id)) { |         if ((!$plan->show && !$plan->renew) || (!$plan->show && $user->plan_id !== $plan->id)) { | ||||||
|             if ($request->input('cycle') !== 'reset_price') { |             if ($request->input('cycle') !== 'reset_price') { | ||||||
|                 abort(500, '该订阅已售罄'); |                 abort(500, '该订阅已售罄,请更换其他订阅'); | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
| @@ -96,6 +96,10 @@ class OrderController extends Controller | |||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         if (!$plan->show && $plan->renew && !$userService->isAvailable($user)) { | ||||||
|  |             abort(500, '订阅已过期,无法续费该订阅'); | ||||||
|  |         } | ||||||
|  |  | ||||||
|         DB::beginTransaction(); |         DB::beginTransaction(); | ||||||
|         $order = new Order(); |         $order = new Order(); | ||||||
|         $orderService = new OrderService($order); |         $orderService = new OrderService($order); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user