From 1e9509f4104b75ca573adbe5679349fd4b51413e Mon Sep 17 00:00:00 2001 From: Devil Date: Sun, 16 May 2021 16:21:31 +0800 Subject: [PATCH] =?UTF-8?q?=20=E6=94=AF=E4=BB=98=E5=AE=9D=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E6=8F=92=E4=BB=B6=E6=94=AF=E6=8C=81=E5=BC=82=E6=AD=A5?= =?UTF-8?q?=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/payment/Alipay.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/extend/payment/Alipay.php b/extend/payment/Alipay.php index cb4d938de..5fcb3537d 100755 --- a/extend/payment/Alipay.php +++ b/extend/payment/Alipay.php @@ -244,8 +244,18 @@ class Alipay // 生成签名参数+签名 $parameter['sign'] = $this->MyRsaSign($this->GetSignContent($parameter)); + + // 接口则直接返回 + if(APPLICATION == 'app') + { + $result = [ + 'data' => $parameter, + 'url' => 'https://openapi.alipay.com/gateway.do?charset=utf-8', + ]; + return DataReturn('success', 0, $result); + } - // 输出执行form表单post提交 + // web端输出执行form表单post提交 exit($this->BuildRequestForm($parameter)); } -- GitLab