修改药师分配人员

This commit is contained in:
2023-03-31 17:28:41 +08:00
parent bb7ea260f3
commit b428db8e99
4 changed files with 94 additions and 9 deletions
+22 -5
View File
@@ -36,25 +36,42 @@ class TestController extends AbstractController
// $this->test_6();
// $this->test_9();
// $this->test_10();
$this->test_11();
// $this->test_11();
// $this->test_5();
$this->test_1();
}
// 获取云证书-首次
public function test_1(){
$ca = new Ca();
// $data = array();
// $data['user_id'] = "491925054435950592";
// $data['card_num'] = "410323199603261241";
// $result = $ca->getCloudCert($data);
//
// $data = array();
// $data['user_id'] = "491925054435950592";
// $data['cert_base64'] = $result['certBase64'];
// $data['cert_chain_p7'] = $result['certP7'];
// $data['cert_serial_number'] = $result['certSerialnumber'];
// $data['ca_pin'] = "491925054435950592";
// $doctor_pharmacist_cert = DoctorPharmacistCert::addDoctorPharmacistCert($data);
// if (empty($doctor_pharmacist_cert)){
// return fail();
// }
$data = array();
$data['user_id'] = "491925054435950592";
$data['card_num'] = "410323199603261241";
$data['user_id'] = "534534546";
$data['card_num'] = "410323199603261236";
$result = $ca->getCloudCert($data);
$data = array();
$data['user_id'] = "491925054435950592";
$data['user_id'] = "534534546";
$data['cert_base64'] = $result['certBase64'];
$data['cert_chain_p7'] = $result['certP7'];
$data['cert_serial_number'] = $result['certSerialnumber'];
$data['ca_pin'] = "491925054435950592";
$data['ca_pin'] = "534534546";
$doctor_pharmacist_cert = DoctorPharmacistCert::addDoctorPharmacistCert($data);
if (empty($doctor_pharmacist_cert)){
return fail();