From ba2bb6874e804443b67d8d9aed70a2b3612dbc1d Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Mon, 17 Feb 2025 16:51:11 +0800 Subject: [PATCH] feat : pay --- app/Service/Api/Pay/PlacePayService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Service/Api/Pay/PlacePayService.php b/app/Service/Api/Pay/PlacePayService.php index de99d50..6a4aad3 100644 --- a/app/Service/Api/Pay/PlacePayService.php +++ b/app/Service/Api/Pay/PlacePayService.php @@ -114,11 +114,13 @@ class PlacePayService extends BaseService $res = [ 'orderId' => $this->orderId, + 'wechat_pay' => [], + 'alipay' => [] ]; //返回支付数组 match ($this->payType) { - PayCode::WECHAT_PAY => $res['weixin'] = $payData, + PayCode::WECHAT_PAY => $res['wechat_pay'] = $payData, PayCode::ALIPAY => throw new ErrException('暂不开放') };