This commit is contained in:
2023-03-03 10:51:15 +08:00
parent e13dcd1998
commit cbf78278b5
2 changed files with 0 additions and 21 deletions
-18
View File
@@ -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);
}
}