删除 处方pdf转图片。调整一下小问题
This commit is contained in:
parent
f54424cf2d
commit
14a9c08af2
@ -1,30 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace App\Command;
|
|
||||||
|
|
||||||
use Hyperf\Command\Command as HyperfCommand;
|
|
||||||
use Hyperf\Command\Annotation\Command;
|
|
||||||
use Psr\Container\ContainerInterface;
|
|
||||||
|
|
||||||
#[Command]
|
|
||||||
class PrescriptionPdfToImgCommand extends HyperfCommand
|
|
||||||
{
|
|
||||||
public function __construct(protected ContainerInterface $container)
|
|
||||||
{
|
|
||||||
parent::__construct('PrescriptionPdfToImgCommand');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function configure(): void
|
|
||||||
{
|
|
||||||
parent::configure();
|
|
||||||
$this->setDescription('处方pdf转图片');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function handle(): void
|
|
||||||
{
|
|
||||||
$this->line("开始");
|
|
||||||
$this->line("全部结束");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -106,7 +106,8 @@ class TestController extends AbstractController
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取未接诊的医生
|
// 获取未接诊的医生
|
||||||
public function uninquiry(){
|
public function uninquiry(): \Psr\Http\Message\ResponseInterface
|
||||||
|
{
|
||||||
$datas = array();
|
$datas = array();
|
||||||
|
|
||||||
$params = array();
|
$params = array();
|
||||||
|
|||||||
@ -441,10 +441,10 @@ class CaService extends BaseService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 进行处方pdf签章
|
* 进行处方pdf签章
|
||||||
* @param string $type 类型 1:医院 2:医生 3:药师
|
* @param string|int $type 类型 1:医院 2:医生 3:药师
|
||||||
* @return string 文件id
|
* @return string 文件id
|
||||||
*/
|
*/
|
||||||
public function addSignPdf(string $type): string
|
public function addSignPdf(string|int $type): string
|
||||||
{
|
{
|
||||||
$oss = new Oss();
|
$oss = new Oss();
|
||||||
|
|
||||||
@ -525,7 +525,6 @@ class CaService extends BaseService
|
|||||||
throw new BusinessException("处方pdf打开失败");
|
throw new BusinessException("处方pdf打开失败");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 处方pdf进行签章
|
// 处方pdf进行签章
|
||||||
$data = array();
|
$data = array();
|
||||||
$data['sign_param'] = json_encode($sign_param);
|
$data['sign_param'] = json_encode($sign_param);
|
||||||
|
|||||||
@ -894,8 +894,9 @@ Router::addGroup('/case', function () {
|
|||||||
Router::addGroup('/test', function () {
|
Router::addGroup('/test', function () {
|
||||||
Router::get('', [TestController::class, 'test']);
|
Router::get('', [TestController::class, 'test']);
|
||||||
|
|
||||||
//
|
// 获取未接诊的医生
|
||||||
// Router::get('/uninquiry', [TestController::class, 'uninquiry']);
|
Router::get('/uninquiry', [TestController::class, 'uninquiry']);
|
||||||
|
|
||||||
// 模拟退款
|
// 模拟退款
|
||||||
Router::post('/refund', [TestController::class, 'refund']);
|
Router::post('/refund', [TestController::class, 'refund']);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user