1
This commit is contained in:
parent
e13dcd1998
commit
cbf78278b5
@ -51,22 +51,4 @@ class InquiryController extends AbstractController
|
||||
$data = $InquiryService->getPatientInquiryCase();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
|
||||
public function addInquiryOrderTest(){
|
||||
$WechatPay = new WechatPay(2);
|
||||
|
||||
$generator = $this->container->get(IdGeneratorInterface::class);
|
||||
|
||||
$out_trade_no = $generator->generate();
|
||||
dump($out_trade_no);
|
||||
|
||||
// 获取jsapi的prepay_id
|
||||
$total = 100;
|
||||
$openid = "o9gYG441zEAHuYoNX7lwFKiQBzKE";
|
||||
$result = $WechatPay->getJsapiPrepayId($out_trade_no,$total,$openid);
|
||||
|
||||
// 获取小程序支付配置
|
||||
$config = $WechatPay->getAppletsPayConfig($result['prepay_id']);
|
||||
dump($config);
|
||||
}
|
||||
}
|
||||
@ -195,9 +195,6 @@ Router::addGroup('/patient', function () {
|
||||
Router::addGroup('/order', function () {
|
||||
// 创建订单
|
||||
Router::post('', [InquiryController::class, 'addInquiryOrder']);
|
||||
|
||||
// 创建订单
|
||||
Router::post('/test', [InquiryController::class, 'addInquiryOrderTest']);
|
||||
});
|
||||
|
||||
// 检测是否可以接诊
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user