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'; }