袁野 5 months ago
parent dc21a1df53
commit 958f63acf1
  1. 3
      hai-order/src/main/java/com/web/controller/OrderPayController.java
  2. 1
      hai-service/src/main/java/com/hai/common/utils/WxUtils.java

@ -418,7 +418,6 @@ public class OrderPayController {
} }
} }
// weChatPayReqInfo.setOpenid(openId); // weChatPayReqInfo.setOpenid(openId);
weChatPayReqInfo.setSub_openid(body.getString("openId")); weChatPayReqInfo.setSub_openid(body.getString("openId"));
weChatPayReqInfo.setNonce_str(nonce_str); // 随机字符串 weChatPayReqInfo.setNonce_str(nonce_str); // 随机字符串
@ -435,8 +434,6 @@ public class OrderPayController {
SortedMap<Object, Object> sortedMap; SortedMap<Object, Object> sortedMap;
System.out.println("-----------------------" + payPlatformType);
if (payPlatformType == 2) { if (payPlatformType == 2) {
objectGas.put("outTradeNo" , order.getOrderNo()); objectGas.put("outTradeNo" , order.getOrderNo());
objectGas.put("transType" , "JSAPI"); objectGas.put("transType" , "JSAPI");

@ -480,7 +480,6 @@ public class WxUtils {
Set<String> keySet = data.keySet(); Set<String> keySet = data.keySet();
String[] keyArray = keySet.toArray(new String[keySet.size()]); String[] keyArray = keySet.toArray(new String[keySet.size()]);
// Arrays.sort(keyArray);
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
for (String k : keyArray) { for (String k : keyArray) {
if (k.equals(WXPayConstants.FIELD_SIGN)) { if (k.equals(WXPayConstants.FIELD_SIGN)) {

Loading…
Cancel
Save