微信企业转账给个人 post请求携带.p12证书
String path = "/pay/apiclient_cert.p12"; Resource resource = new ClassPathResource(path); String res = WxPayUtil.doSendRequest(profitUrl,body,appBean.getWxSmallRoutine().getMchId(), resource.getInputStream()); //微信小程序支付工具类 public class WxPayUtil { /** * 成功的标识 */ private final static String SUCCESS = "SUCCESS"; /** * 返回状态码的变量名 */ private final static String RETURN_CODE = "return_code"; private final static String RESULT_CODE="result_code"; public static BigDecimal convert(BigDecimal amount){ BigDecimal reslut=amount.multiply(new BigDecimal(100)); reslut = reslut.setScale(0, RoundingMode.DOWN);//取整 return reslut; } public static boolean checkResult(String res)throws Exception{ System.err.println("=====微信分账,返回结果:"+res); Map<String