mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	update: fix onetime refund issue
This commit is contained in:
		| @@ -170,6 +170,7 @@ class OrderService | ||||
|             ->first(); | ||||
|         if (!$lastOneTimeOrder) return; | ||||
|         $plan = Plan::find($lastOneTimeOrder->plan_id); | ||||
|         if (!$plan) return; | ||||
|         $trafficUnitPrice = $plan->onetime_price / $plan->transfer_enable; | ||||
|         if ($user->discount && $trafficUnitPrice) { | ||||
|             $trafficUnitPrice = $trafficUnitPrice - ($trafficUnitPrice * $user->discount / 100); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user