测试
This commit is contained in:
@@ -452,6 +452,10 @@ class OrderPrescriptionService extends BaseService
|
||||
|
||||
// 打开处方pdf文件
|
||||
$pdf_file = fopen("./runtime/" . $order_prescription['order_prescription_id'] . ".pdf",'r');
|
||||
if (!$pdf_file){
|
||||
throw new BusinessException("处方图片打开失败");
|
||||
}
|
||||
|
||||
|
||||
// 处方pdf进行签章
|
||||
$data = array();
|
||||
@@ -529,11 +533,12 @@ class OrderPrescriptionService extends BaseService
|
||||
throw new BusinessException("下载处方签章文件失败");
|
||||
}
|
||||
|
||||
dump("下载处方签章文件成功");
|
||||
dump("下载医院处方签章文件成功");
|
||||
|
||||
// 上传oss
|
||||
$hospital_filename = "applet/prescription/" . $order_prescription['order_prescription_id'] . '.' . 'pdf';
|
||||
$prescription_pdf_url = $oss->putObject($hospital_filename, $prescription_pdf_result);
|
||||
dump("上传医院处方签章文件成功");
|
||||
}
|
||||
|
||||
$result = array();
|
||||
|
||||
@@ -127,6 +127,8 @@ class UserPharmacistService extends BaseService
|
||||
public function putPrescriptionVerify(): array
|
||||
{
|
||||
$user_info = $this->request->getAttribute("userInfo") ?? [];
|
||||
$user_info['user_id'] = "534534546";
|
||||
$user_info['client_user_id'] = "534534546";
|
||||
|
||||
$order_prescription_id = $this->request->route('order_prescription_id');
|
||||
$pharmacist_audit_status = $this->request->input('pharmacist_audit_status');
|
||||
|
||||
Reference in New Issue
Block a user