diff --git a/app/Http/Controllers/Api/Printer/ClearQueuePrinterController.php b/app/Http/Controllers/Api/Printer/ClearQueuePrinterController.php index 004ddf9..27de9fb 100644 --- a/app/Http/Controllers/Api/Printer/ClearQueuePrinterController.php +++ b/app/Http/Controllers/Api/Printer/ClearQueuePrinterController.php @@ -15,6 +15,7 @@ class ClearQueuePrinterController { $printer = Printer::find($id); + $data = request()->input('params'); $baseUrl = 'http://' .$printer->config->networkFormat(); @@ -26,9 +27,8 @@ class ClearQueuePrinterController $url = $baseUrl . '/server/job_queue/job'; $query = []; - $data= []; - $method = 'post'; + $method = 'delete'; $response = $httpClient->{$method}($url, $method === 'get' ? $query : $data); dd($response);