Commit a055cf72 authored by hj's avatar hj

更新提交

parent 61446396
...@@ -28,7 +28,7 @@ class MsdsController extends Controller ...@@ -28,7 +28,7 @@ class MsdsController extends Controller
public function __construct(ChemicalsMsdsService $chemicalsMsdsService) public function __construct(ChemicalsMsdsService $chemicalsMsdsService)
{ {
$this->chemicalsMsdsService= $chemicalsMsdsService; $this->setService($chemicalsMsdsService);
} }
public function getMsds(Request $request) public function getMsds(Request $request)
...@@ -54,7 +54,7 @@ class MsdsController extends Controller ...@@ -54,7 +54,7 @@ class MsdsController extends Controller
} }
$platformCompanyInfo = app(CustomerService::class)->getPlatformCustomer(['cus_number' => $customerCode]); $platformCompanyInfo = app(CustomerService::class)->getPlatformCustomer(['cus_number' => $customerCode]);
$pdf = $this->chemicalsMsdsService->getMsds($cas, $msdsType, $platformCompanyInfo); $pdf = $this->getService()->getMsds($cas, $msdsType, $platformCompanyInfo);
return Response::success($this->formatKeysfromArray(['download' => env('DOWNLOAD_URL').$pdf]),'操作成功'); return Response::success($this->formatKeysfromArray(['download' => env('DOWNLOAD_URL').$pdf]),'操作成功');
}catch(\Throwable $exception){ }catch(\Throwable $exception){
...@@ -82,7 +82,6 @@ class MsdsController extends Controller ...@@ -82,7 +82,6 @@ class MsdsController extends Controller
echo $file; echo $file;
}catch(\Throwable $exception){ }catch(\Throwable $exception){
dd($exception->getMessage());
$this->returnErrorExecptionResponse($exception); $this->returnErrorExecptionResponse($exception);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment