Commit 2e2bc270 by lujunyi

根据处方类型选择不同处方单背景

parent 43c89f11
...@@ -78,7 +78,12 @@ public function search() ...@@ -78,7 +78,12 @@ public function search()
// 创建处方图片 // 创建处方图片
// 处方背景图宽1653,高2339 // 处方背景图宽1653,高2339
$img = Image::read(public_path('static/images/chufangdan.jpg')); $backgroudImg = public_path('static/images/zhongyao.jpg');
if ($prescription->prescription_type == PRESCRIPTION_TYPE_WM) {
$backgroudImg = public_path('static/images/xiyao.jpg');
}
$img = Image::read($backgroudImg);
$imageWidth = 1653; $imageWidth = 1653;
$centerX = $imageWidth / 2; // 手动调整 X 坐标以居中 $centerX = $imageWidth / 2; // 手动调整 X 坐标以居中
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment