修改开具处方:增加回滚。删除无用log记录,修改处方图片位置
This commit is contained in:
@@ -397,7 +397,7 @@ class CaService extends BaseService
|
||||
$pdf->Image('@' . $img_result, 10, 10, 0, 0, '', '', '', false, 300, '', false, false, 0, false, false, false);
|
||||
|
||||
$prescription_pdf_local_filename = $order_prescription['order_prescription_id'] . '.' . 'pdf';
|
||||
$prescription_pdf_local_path = dirname(__DIR__, 2) . "/file/prescription/";
|
||||
$prescription_pdf_local_path = BASE_PATH . "/runtime/file/prescription/";
|
||||
|
||||
$res = mkdirs($prescription_pdf_local_path);
|
||||
if (!$res){
|
||||
@@ -406,7 +406,6 @@ class CaService extends BaseService
|
||||
|
||||
// 图片生成的处方pdf存储为本地文件 runtime目录下
|
||||
$pdf->Output($prescription_pdf_local_path . $prescription_pdf_local_filename, "F");
|
||||
|
||||
return $prescription_img_oss_path;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user