This commit is contained in:
2023-04-18 13:27:35 +08:00
parent fde2f44766
commit 9acd823317
6 changed files with 61 additions and 54 deletions
+18 -18
View File
@@ -58,11 +58,11 @@ class TestController extends AbstractController
// $this->test_10();
// $this->test_11();
// $this->test_5();
// $this->test_1();
$this->test_1();
// $this->test_11();
// $this->test_12();
// $this->test_13();
$this->test_14();
// $this->test_14();
}
// 获取云证书-首次
@@ -85,22 +85,22 @@ class TestController extends AbstractController
// return fail();
// }
// // 测试药师
// $data = array();
// $data['user_id'] = "534534546";
// $data['card_num'] = "410323199603261240";
// $result = $ca->getCloudCert($data);
//
// $data = array();
// $data['user_id'] = "534534546";
// $data['cert_base64'] = $result['certBase64'];
// $data['cert_chain_p7'] = $result['certP7'];
// $data['cert_serial_number'] = $result['certSerialnumber'];
// $data['ca_pin'] = "534534546";
// $doctor_pharmacist_cert = UserCaCert::addDoctorPharmacistCert($data);
// if (empty($doctor_pharmacist_cert)){
// return fail();
// }
// 测试药师
$data = array();
$data['user_id'] = "534534546";
$data['card_num'] = "410323199603261240";
$result = $ca->getCloudCert($data);
$data = array();
$data['user_id'] = "534534546";
$data['cert_base64'] = $result['certBase64'];
$data['cert_chain_p7'] = $result['certP7'];
$data['cert_serial_number'] = $result['certSerialnumber'];
$data['ca_pin'] = "534534546";
$doctor_pharmacist_cert = UserCaCert::addDoctorPharmacistCert($data);
if (empty($doctor_pharmacist_cert)){
return fail();
}
// 测试企业
// $data = array();