Bladeren bron

微信/小程序支付 删除通过openid查找用户方法

ZhangWenQiang 6 jaren geleden
bovenliggende
commit
924d138d89

+ 1 - 10
happy-job-module-hppay/src/main/java/com/jeeplus/modules/wechatminapay/utils/WeChatMinaPay.java

@@ -225,21 +225,12 @@ public class WeChatMinaPay {
                 String outTradeNo = wx_map.get("out_trade_no");
                 // 支付完成时间
                 String time_end = wx_map.get("time_end");
-                // 获取fansId
-                String fansId = "";
-
-                HpUserPay hpUser = new HpUserPay();
-                hpUser.setMinaOpenid(openid);
-                hpUser = hpUserPayService.getByMinaOpenId(hpUser);
-                if (hpUser != null) {
-                    fansId = hpUser.getId();
-                }
+
 
                 // 返回支付参数
                 SortedMap<Object, Object> params = new TreeMap<Object, Object>();
                 params.put("return_code", "SUCCESS");
                 params.put("result_code", "SUCCESS");
-                params.put("fansId", fansId);
                 params.put("trade_state", trade_state);
                 params.put("total_fee", total_fee);
                 params.put("out_trade_no", outTradeNo);

+ 2 - 11
happy-job-module-hppay/src/main/java/com/jeeplus/modules/wechatpay/utils/WeChatPay.java

@@ -214,21 +214,12 @@ public class WeChatPay {
                 String outTradeNo = wx_map.get("out_trade_no");
                 // 支付完成时间
                 String time_end = wx_map.get("time_end");
-                // 获取fansId
-                String fansId = "";
-
-                HpUserPay hpUser = new HpUserPay();
-                hpUser.setWxOpenid(openid);
-                hpUser = hpUserPayService.getByWxOpenId(hpUser);
-                if (hpUser != null) {
-                    fansId = hpUser.getId();
-                }
 
-                // 返回支付参数
+
+                //返回支付参数
                 SortedMap<Object, Object> params = new TreeMap<Object, Object>();
                 params.put("return_code", "SUCCESS");
                 params.put("result_code", "SUCCESS");
-                params.put("fansId", fansId);
                 params.put("trade_state", trade_state);
                 params.put("total_fee", total_fee);
                 params.put("out_trade_no", outTradeNo);