Browse Source

fixed 收银端扫码支付问题

fushengqian 1 month ago
parent
commit
de5f0270a3

+ 2 - 2
fuint-application/src/main/java/com/fuint/common/service/impl/WeixinServiceImpl.java

@@ -1329,8 +1329,8 @@ public class WeixinServiceImpl implements WeixinService {
                    .domain(wxPayBean.getDomain())
                    .build();
 
-        // 微信内h5公众号支付
-        if (platform.equals(PlatformTypeEnum.H5.getCode())) {
+        // 微信内h5公众号支付或PC收银
+        if (platform.equals(PlatformTypeEnum.H5.getCode()) || platform.equals(PlatformTypeEnum.PC.getCode())) {
             String wxAppId = env.getProperty("weixin.official.appId");
             String wxAppSecret = env.getProperty("weixin.official.appSecret");