测试
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();
|
||||
|
||||
Reference in New Issue
Block a user