From 14a9c08af2ef9db4e0620901cf0e7a1b65c2f855 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Fri, 17 May 2024 15:31:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20=E5=A4=84=E6=96=B9pdf?= =?UTF-8?q?=E8=BD=AC=E5=9B=BE=E7=89=87=E3=80=82=E8=B0=83=E6=95=B4=E4=B8=80?= =?UTF-8?q?=E4=B8=8B=E5=B0=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Command/PrescriptionPdfToImgCommand.php | 30 --------------------- app/Controller/TestController.php | 3 ++- app/Services/CaService.php | 5 ++-- config/routes.php | 5 ++-- 4 files changed, 7 insertions(+), 36 deletions(-) delete mode 100644 app/Command/PrescriptionPdfToImgCommand.php diff --git a/app/Command/PrescriptionPdfToImgCommand.php b/app/Command/PrescriptionPdfToImgCommand.php deleted file mode 100644 index 80e141b..0000000 --- a/app/Command/PrescriptionPdfToImgCommand.php +++ /dev/null @@ -1,30 +0,0 @@ -setDescription('处方pdf转图片'); - } - - public function handle(): void - { - $this->line("开始"); - $this->line("全部结束"); - } -} diff --git a/app/Controller/TestController.php b/app/Controller/TestController.php index 8435533..137a70f 100644 --- a/app/Controller/TestController.php +++ b/app/Controller/TestController.php @@ -106,7 +106,8 @@ class TestController extends AbstractController } // 获取未接诊的医生 - public function uninquiry(){ + public function uninquiry(): \Psr\Http\Message\ResponseInterface + { $datas = array(); $params = array(); diff --git a/app/Services/CaService.php b/app/Services/CaService.php index 371493d..050854a 100644 --- a/app/Services/CaService.php +++ b/app/Services/CaService.php @@ -441,10 +441,10 @@ class CaService extends BaseService /** * 进行处方pdf签章 - * @param string $type 类型 1:医院 2:医生 3:药师 + * @param string|int $type 类型 1:医院 2:医生 3:药师 * @return string 文件id */ - public function addSignPdf(string $type): string + public function addSignPdf(string|int $type): string { $oss = new Oss(); @@ -525,7 +525,6 @@ class CaService extends BaseService throw new BusinessException("处方pdf打开失败"); } - // 处方pdf进行签章 $data = array(); $data['sign_param'] = json_encode($sign_param); diff --git a/config/routes.php b/config/routes.php index 7eb22ce..b700d43 100644 --- a/config/routes.php +++ b/config/routes.php @@ -894,8 +894,9 @@ Router::addGroup('/case', function () { Router::addGroup('/test', function () { Router::get('', [TestController::class, 'test']); - // -// Router::get('/uninquiry', [TestController::class, 'uninquiry']); + // 获取未接诊的医生 + Router::get('/uninquiry', [TestController::class, 'uninquiry']); + // 模拟退款 Router::post('/refund', [TestController::class, 'refund']);