From 33eb3cbe1b3758fa7b1f3cb5ba142c8b9b9e17f6 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Mon, 10 Apr 2023 13:56:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=91=E8=AF=81=E4=B9=A6?= =?UTF-8?q?=E7=AD=BE=E5=90=8D=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/OrderPrescriptionService.php | 12 +++++++++--- extend/Ca/Ca.php | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/Services/OrderPrescriptionService.php b/app/Services/OrderPrescriptionService.php index 00e2b3c..5986f47 100644 --- a/app/Services/OrderPrescriptionService.php +++ b/app/Services/OrderPrescriptionService.php @@ -265,19 +265,25 @@ class OrderPrescriptionService extends BaseService $data['product'][] = $product; } + dump("获取用户云证书签名"); $cert_sign_result = $ca->getCertSign($user_entity_id, $user_entity_id, $data); + dump("获取用户云证书签名成功"); // 验证云证书签名-验证无需处理,只要不返回错误即可 + dump("验证用户云证书签名"); $ca->verifyPkcs7($cert_sign_result['signP7'], $data); - - dump("云证书签名验证成功"); + dump("验证用户云证书签名成功"); if ($user['user_type'] == 3) { + dump("获取医院云证书签名"); + unset($cert_sign_result); $cert_sign_result = $ca->getCertSign($hospital_entity_id, $hospital_entity_id, $data); + dump("获取医院云证书签名成功"); // 验证云证书签名-验证无需处理,只要不返回错误即可 + dump("验证医院云证书签名"); $ca->verifyPkcs7($cert_sign_result['signP7'], $data); - dump("医院云证书签名获取成功"); + dump("验证医院云证书签名成功"); } $oss = new Oss(); diff --git a/extend/Ca/Ca.php b/extend/Ca/Ca.php index a63dbce..ab11fc6 100644 --- a/extend/Ca/Ca.php +++ b/extend/Ca/Ca.php @@ -76,6 +76,7 @@ class Ca ] ]; + dump($option); try { $response = $this->httpRequest( config("ca.api_url") . '/cloud-certificate-service' . '/api/cloudCert/open/cert/sign',