1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user