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']);