mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	feature: knowledge base & surplus switch
This commit is contained in:
		| @@ -98,7 +98,7 @@ class OrderService | ||||
|         } else if ($user->plan_id !== NULL && $order->plan_id !== $user->plan_id && ($user->expired_at > time() || $user->expired_at === NULL)) { | ||||
|             if (!(int)config('v2board.plan_change_enable', 1)) abort(500, '目前不允许更改订阅,请联系客服或提交工单操作'); | ||||
|             $order->type = 3; | ||||
|             $this->getSurplusValue($user, $order); | ||||
|             if ((int)config('v2board.surplus_enable', 1)) $this->getSurplusValue($user, $order); | ||||
|             if ($order->surplus_amount >= $order->total_amount) { | ||||
|                 $order->refund_amount = $order->surplus_amount - $order->total_amount; | ||||
|                 $order->total_amount = 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user