芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/vendor/shakurov/coinbase/src/Models/CoinbaseWebhookCall.php
'array', 'exception' => 'array', ]; public function process() { $this->clearException(); if ($this->type === '') { throw WebhookFailed::missingType($this); } event("coinbase::{$this->type}", $this); $jobClass = $this->determineJobClass($this->type); if ($jobClass === '') { return; } if (! class_exists($jobClass)) { throw WebhookFailed::jobClassDoesNotExist($jobClass, $this); } dispatch(new $jobClass($this)); } public function saveException(Exception $exception) { $this->exception = [ 'code' => $exception->getCode(), 'message' => $exception->getMessage(), 'trace' => $exception->getTraceAsString(), ]; $this->save(); return $this; } protected function determineJobClass(string $eventType): string { $jobConfigKey = str_replace('.', '_', $eventType); return config("coinbase.webhookJobs.{$jobConfigKey}", ''); } protected function clearException() { $this->exception = null; $this->save(); return $this; } }