This commit is contained in:
2023-04-03 14:34:14 +08:00
parent 2aacffb95e
commit f0fb754d82
3 changed files with 72 additions and 3 deletions
+6 -1
View File
@@ -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();
+2
View File
@@ -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');