1
This commit is contained in:
parent
077d42def4
commit
8ae824b88c
@ -58,11 +58,11 @@ class TestController extends AbstractController
|
|||||||
// $this->test_10();
|
// $this->test_10();
|
||||||
// $this->test_11();
|
// $this->test_11();
|
||||||
// $this->test_5();
|
// $this->test_5();
|
||||||
$this->test_1();
|
// $this->test_1();
|
||||||
// $this->test_11();
|
// $this->test_11();
|
||||||
// $this->test_12();
|
// $this->test_12();
|
||||||
// $this->test_13();
|
// $this->test_13();
|
||||||
// $this->test_14();
|
$this->test_14();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取云证书-首次
|
// 获取云证书-首次
|
||||||
@ -86,21 +86,21 @@ class TestController extends AbstractController
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// 测试药师
|
// 测试药师
|
||||||
$data = array();
|
// $data = array();
|
||||||
$data['user_id'] = "534534546";
|
// $data['user_id'] = "534534546";
|
||||||
$data['card_num'] = "410323199603261240";
|
// $data['card_num'] = "410323199603261240";
|
||||||
$result = $ca->getCloudCert($data);
|
// $result = $ca->getCloudCert($data);
|
||||||
|
//
|
||||||
$data = array();
|
// $data = array();
|
||||||
$data['user_id'] = "534534546";
|
// $data['user_id'] = "534534546";
|
||||||
$data['cert_base64'] = $result['certBase64'];
|
// $data['cert_base64'] = $result['certBase64'];
|
||||||
$data['cert_chain_p7'] = $result['certP7'];
|
// $data['cert_chain_p7'] = $result['certP7'];
|
||||||
$data['cert_serial_number'] = $result['certSerialnumber'];
|
// $data['cert_serial_number'] = $result['certSerialnumber'];
|
||||||
$data['ca_pin'] = "534534546";
|
// $data['ca_pin'] = "534534546";
|
||||||
$doctor_pharmacist_cert = UserCaCert::addDoctorPharmacistCert($data);
|
// $doctor_pharmacist_cert = UserCaCert::addDoctorPharmacistCert($data);
|
||||||
if (empty($doctor_pharmacist_cert)){
|
// if (empty($doctor_pharmacist_cert)){
|
||||||
return fail();
|
// return fail();
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 测试企业
|
// 测试企业
|
||||||
// $data = array();
|
// $data = array();
|
||||||
@ -758,7 +758,7 @@ class TestController extends AbstractController
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 退款
|
// 退款
|
||||||
public function test_13(){
|
public function refund(){
|
||||||
$out_trade_no = $this->request->input('out_trade_no');
|
$out_trade_no = $this->request->input('out_trade_no');
|
||||||
$params = array();
|
$params = array();
|
||||||
$params['order_inquiry_id'] = $out_trade_no;
|
$params['order_inquiry_id'] = $out_trade_no;
|
||||||
@ -773,15 +773,36 @@ class TestController extends AbstractController
|
|||||||
return success();
|
return success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取云证书-线上
|
||||||
public function test_14(){
|
public function test_14(){
|
||||||
|
// $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 = UserCaCert::addDoctorPharmacistCert($data);
|
||||||
|
// if (empty($doctor_pharmacist_cert)){
|
||||||
|
// return fail();
|
||||||
|
// }
|
||||||
|
|
||||||
|
dump(111);
|
||||||
$data = array();
|
$data = array();
|
||||||
$data['order_inquiry_id'] = "505411502226542593";
|
$data['order_inquiry_id'] = "506842098249736193";
|
||||||
|
|
||||||
$message = new AssignDoctorProducer($data);
|
$message = new AssignDoctorProducer($data);
|
||||||
$producer = ApplicationContext::getContainer()->get(Producer::class);
|
$producer = ApplicationContext::getContainer()->get(Producer::class);
|
||||||
$result = $producer->produce($message);
|
$result = $producer->produce($message);
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
dump(111);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user