From 2d3f7b0bde008205dfb2c59efe277cbeba070a6f Mon Sep 17 00:00:00 2001 From: yin5th <541304803@qq.com> Date: Tue, 26 Sep 2023 16:41:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E4=BB=98=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/app/common/server/WeChatPayServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app/common/server/WeChatPayServer.php b/server/app/common/server/WeChatPayServer.php index 23e751e2..1a5da29c 100644 --- a/server/app/common/server/WeChatPayServer.php +++ b/server/app/common/server/WeChatPayServer.php @@ -255,7 +255,7 @@ class WeChatPayServer } //h5支付类型 - if ($order_source == Client_::h5) { + if (in_array($order_source, [Client_::h5, Client_::api])) { $attributes['trade_type'] = 'MWEB'; }