芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/app/Http/Controllers/Api/TransactionController.php
email = new EmailController(); } public function getTransactionApi() { if (request('type') && request('user_id')) { $type = request('type'); $user_id = request('user_id'); $transaction = new Transaction(); $transactions = $transaction->getTransactionLists($type, $user_id); $success['status'] = $this->successStatus; return response()->json(['success' => $success, 'transactions' => $transactions], $this->successStatus); } else { echo "In else block";exit();return false; } } public function getTransactionDetailsApi() { if (request('user_id')) { $user_id = request('user_id'); $tr_id = request('tr_id'); $transaction = new Transaction(); $transaction = $transaction->getTransactionDetails($tr_id, $user_id); $success['status'] = $this->successStatus; return response()->json(['success' => $success, 'transaction' => $transaction], $this->successStatus); } else { echo "In else block";exit();return false; } } }