芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/Modules/BlockIo/Entities/BlockIoTransaction.php
relations = array_merge($this->blockIoRelations, $this->transactionRelations); } public function getTransactionDetails($id) { $data['menu'] = 'transaction'; $data['sub_menu'] = 'transactions'; $data['transaction'] = $this->getTransaction($id); if (!empty($data['transaction']->cryptoAssetApiLog)) { $getCryptoDetails = (new BlockIo)->getCryptoPayloadConfirmationsDetails($data['transaction']->transaction_type_id, $data['transaction']->cryptoAssetApiLog?->payload, $data['transaction']->cryptoAssetApiLog?->confirmations); if (count($getCryptoDetails) > 0) { if (isset($getCryptoDetails['senderAddress'])) { $data['senderAddress'] = $getCryptoDetails['senderAddress']; } if (isset($getCryptoDetails['receiverAddress'])) { $data['receiverAddress'] = $getCryptoDetails['receiverAddress']; } if (isset($getCryptoDetails['network_fee'])) { $data['network_fee'] = $getCryptoDetails['network_fee']; } $data['txId'] = $getCryptoDetails['txId']; $data['confirmations'] = $getCryptoDetails['confirmations']; } } return $data; } public function getTransaction($id) { return \App\Models\Transaction::with($this->relations)->find($id); } }