From eb021e506dbb3a06a61c93be590392ba051103d5 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Wed, 19 Apr 2023 20:15:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=84=E6=96=B9=E5=BC=80?= =?UTF-8?q?=E5=85=B7=E6=97=B6=E5=94=AF=E4=B8=80=E6=A0=87=E8=AF=86=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E3=80=81=E4=BD=BF=E7=94=A8=E9=94=99=E8=AF=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/CaService.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/Services/CaService.php b/app/Services/CaService.php index 39d3f3a..9f7434a 100644 --- a/app/Services/CaService.php +++ b/app/Services/CaService.php @@ -76,7 +76,7 @@ class CaService extends BaseService $this->hospital_entity_id = "5345345461"; } - if (empty($user_sign_image_path) || empty($user_entity_id)) { + if (empty($user_sign_image_path) || empty($this->user_entity_id)) { throw new BusinessException("无签名图片/用户唯一标识"); } @@ -448,18 +448,24 @@ class CaService extends BaseService $lly = "210"; // 左边底部Y坐标 控制上下(越小越下) $urx = "520"; // 右边上部x坐标 $ury = "360"; // 右边上部y坐标 + + $entity_id = $this->hospital_entity_id; } elseif ($type == 2){ // 医生端 $llx = "120"; // 左边底部X坐标 $lly = "190"; // 左边底部Y坐标 $urx = "190"; // 右边上部x坐标 $ury = "140"; // 右边上部y坐标 + + $entity_id = $this->user_entity_id; }else{ // 药师端 $llx = "350"; // 左边底部X坐标 $lly = "190"; // 左边底部Y坐标 $urx = "440"; // 右边上部x坐标 $ury = "140"; // 右边上部y坐标 + + $entity_id = $this->user_entity_id; } $sign_param = [ @@ -485,7 +491,7 @@ class CaService extends BaseService $data = array(); $data['sign_param'] = json_encode($sign_param); $data['pdf_file'] = $pdf_file; - $sign_pdf_result = $CaOnline->addSignPdf($this->user_entity_id, $data); + $sign_pdf_result = $CaOnline->addSignPdf($entity_id, $data); if (empty($sign_pdf_result[0]['fileId'])) { throw new BusinessException("处方签章失败"); }