|
@@ -154,7 +154,7 @@ public class WxOrderServiceImpl extends ServiceImpl<WxOrderMapper, WxOrder> impl
|
|
|
receiverMap.put("description", "分到个人"); //合作合伙
|
|
|
ObjectMapper objectMapper = new ObjectMapper();
|
|
|
String receiverMapJson = objectMapper.writeValueAsString(receiverMap);
|
|
|
- sortMap.put("receiver", receiverMapJson);
|
|
|
+ sortMap.put("receivers", receiverMapJson);
|
|
|
|
|
|
WXPayConfig config = new WxPayConfigImpl();
|
|
|
String sign = WXPayUtil.generateSignature(sortMap, config.getKey(), WXPayConstants.SignType.HMACSHA256);
|
|
@@ -164,7 +164,7 @@ public class WxOrderServiceImpl extends ServiceImpl<WxOrderMapper, WxOrder> impl
|
|
|
String xmlStr = pay.requestWithCert(url, sortMap, config.getHttpConnectTimeoutMs(), config.getHttpReadTimeoutMs());
|
|
|
Map<String, String> resMap = XmlUtil.xmlToMap(xmlStr);
|
|
|
if (!"SUCCESS".equals(resMap.get("return_code")) || !"SUCCESS".equals(resMap.get("result_code"))) {
|
|
|
- throw new CustomException("微信添加分账出错");
|
|
|
+ throw new CustomException("微信分账出错");
|
|
|
}
|
|
|
//更新成交订单表
|
|
|
OrderInfo orderInfo = orderInfoService.getByOutTradeNo(wxOrder.getOutTradeNo());
|