|
@@ -255,4 +255,22 @@ public class WechatLogic extends OutsideBaseApi{
|
|
|
return JSONUtil.toBean(s, new TypeReference<ResponseHelper<WxMpQrCodeTicket>>() {
|
|
|
}, false);
|
|
|
}
|
|
|
+
|
|
|
+ public PayDetail paymentWebsit(String orderId, BigDecimal payAmount, String openId, String profitSharingFlag, String ip, String payInsureCodeId, boolean miniPay) {
|
|
|
+ Map<String,Object> map = new HashMap<>();
|
|
|
+ map.put("orderId",orderId);
|
|
|
+ map.put("payAmount",payAmount);
|
|
|
+ map.put("openId",openId);
|
|
|
+ map.put("profitSharingFlag",profitSharingFlag);
|
|
|
+ map.put("ip",ip);
|
|
|
+ map.put("companyWechatId",payInsureCodeId);
|
|
|
+ map.put("miniPay",miniPay);
|
|
|
+ String s = HttpUtils.requestPostForm(pcUrl + "/wechat/paymentWebsit", map, getHeader());
|
|
|
+ log.info("微信支付response:{}",s);
|
|
|
+ ResponseHelper<PayDetail> result = JSONUtil.toBean(s, new TypeReference<ResponseHelper<PayDetail>>() {
|
|
|
+ }, false);
|
|
|
+ PayDetail payDetail = checkData(result);
|
|
|
+ log.info("微信支付:{}",payDetail);
|
|
|
+ return payDetail;
|
|
|
+ }
|
|
|
}
|