mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	add: payment drop
This commit is contained in:
		| @@ -64,4 +64,13 @@ class PaymentController extends Controller | ||||
|             'data' => true | ||||
|         ]); | ||||
|     } | ||||
|  | ||||
|     public function drop(Request $request) | ||||
|     { | ||||
|         $payment = Payment::find($request->input('id')); | ||||
|         if (!$payment) abort(500, '支付方式不存在'); | ||||
|         return response([ | ||||
|             'data' => $payment->delete() | ||||
|         ]); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user