提交代码

dev-discount
胡锐 3 years ago
parent 01d438a95f
commit 7482b3666a
  1. 7
      hai-cweb/src/main/java/com/cweb/controller/OutRechargeOrderController.java
  2. 4
      hai-service/src/main/java/com/hai/service/pay/impl/GoodsOrderServiceImpl.java

@ -370,7 +370,7 @@ public class OutRechargeOrderController {
param.put("mch_id", "1289663601");
//param.put("sub_mch_id" , "1289663601");
param.put("sub_mch_id" , "1609882817"); // 个体户黎杨珍
param.put("transaction_id" , "4200001152202106114622919776");
param.put("transaction_id" , "4200001148202106176001512773");
param.put("out_order_no" , String.valueOf(new Date().getTime()));
param.put("nonce_str" , WxUtils.makeNonStr());
@ -388,9 +388,10 @@ public class OutRechargeOrderController {
List<Map<String,Object>> receiversList = new ArrayList<>();
Map<String,Object> receiversMap = new LinkedHashMap<>();
receiversMap.put("type", "MERCHANT_ID");
receiversMap.put("account", "1604968055");// 个体户方涛
// receiversMap.put("account", "1604968055");// 个体户方涛
receiversMap.put("account", "1603942866"); // 重庆慧听石化有限责任公司
receiversMap.put("amount", profitSharingAmount.multiply(new BigDecimal("100")).intValue());
receiversMap.put("description", "分给商户【个体户方涛】");
receiversMap.put("description", "分给商户【重庆慧听石化有限责任公司】");
receiversList.add(receiversMap);
param.put("receivers" , JSONObject.toJSONString(receiversList));
String signStr = WxUtils.generateSignature(param, "Skufk5oi85wDFGl888i6wsRSTkdd5df5" , WXPayConstants.SignType.HMACSHA256);

@ -167,9 +167,9 @@ public class GoodsOrderServiceImpl implements PayService {
List<Map<String,Object>> receiversList = new ArrayList<>();
Map<String,Object> receiversMap = new LinkedHashMap<>();
receiversMap.put("type", "MERCHANT_ID");
receiversMap.put("account", "1604968055");
receiversMap.put("account", "1603942866");
receiversMap.put("amount", porofitSharingAmount.multiply(new BigDecimal("100")).intValue());
receiversMap.put("description", "分给商户【个体户方涛】");
receiversMap.put("description", "分给商户【重庆慧听石化有限责任公司】");
receiversList.add(receiversMap);
param.put("receivers" , JSONObject.toJSONString(receiversList));
String signStr = WxUtils.generateSignature(param, "Skufk5oi85wDFGl888i6wsRSTkdd5df5" , WXPayConstants.SignType.HMACSHA256);

Loading…
Cancel
Save