From 985abf1fadf7459747d7dde66243179fed201c80 Mon Sep 17 00:00:00 2001 From: 18650502300 <18650502300@163.com> Date: Tue, 24 Sep 2024 22:10:33 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A4=AA=E7=B1=B3=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/service/impl/WxPayService.java | 2 +- .../mapper/system/EtChannelMapper.xml | 36 ++++++++++++++++++- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/electripper-system/src/main/java/com/ruoyi/system/service/impl/WxPayService.java b/electripper-system/src/main/java/com/ruoyi/system/service/impl/WxPayService.java index f6efcfb..799b7fd 100644 --- a/electripper-system/src/main/java/com/ruoyi/system/service/impl/WxPayService.java +++ b/electripper-system/src/main/java/com/ruoyi/system/service/impl/WxPayService.java @@ -117,6 +117,7 @@ public class WxPayService implements IWxPayService { throw new ServiceException("运营商【"+sysDept.getDeptName()+"】没有支付渠道"); } ChannelVO channelVO = etChannelService.selectSmChannelByChannelId(payChannel); + log.info("支付渠道------"+JSON.toJSON(channelVO)); String outTradeNo = null; if(PayChannel.CT_WX.equalsCode(channelVO.getCode()) || PayChannel.YS_WX.equalsCode(channelVO.getCode())){ outTradeNo = IdUtils.getOrderNo("wx"); @@ -145,7 +146,6 @@ public class WxPayService implements IWxPayService { request.setMchid(channelVO.getMerchantId()); request.setAttach(JSON.toJSONString(new AttachVo(payType,user.getUserId(), ""))); request.setDescription(description); - log.info("支付渠道------"+JSON.toJSON(channelVO)); request.setNotifyUrl(channelVO.getNotifyUrl()); request.setPayer(getPayer(user.getWxopenid())); JsapiServiceExtension jsapiServiceExtension = getJsapiServiceExtension(channelVO); diff --git a/electripper-system/src/main/resources/mapper/system/EtChannelMapper.xml b/electripper-system/src/main/resources/mapper/system/EtChannelMapper.xml index 1fdad4d..7b97a4a 100644 --- a/electripper-system/src/main/resources/mapper/system/EtChannelMapper.xml +++ b/electripper-system/src/main/resources/mapper/system/EtChannelMapper.xml @@ -22,7 +22,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" sc.private_key_path, sc.merchant_serial_number, sc.refund_notify_url, - sc.appid + sc.appid, + sc.developer_id, + sc.shop_id, + sc.http_url, + sc.sign_key, + sc.sn from et_channel sc @@ -58,6 +63,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" enabled, cost_rate, picture, + merchant_id, + api_v3_key, + notify_url, + private_key_path, + merchant_serial_number, + refund_notify_url, + appid, + developer_id, + shop_id, + http_url, + sign_key, + sn, #{channelId}, @@ -66,6 +83,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{enabled}, #{costRate}, #{picture}, + #{merchantId}, + #{apiV3Key}, + #{notifyUrl}, + #{privateKeyPath}, + #{merchantSerialNumber}, + #{refundNotifyUrl}, + #{appid}, + #{developerId}, + #{shopId}, + #{httpUrl}, + #{signKey}, + #{sn}, @@ -84,6 +113,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" merchant_serial_number = #{data.merchantSerialNumber}, refund_notify_url = #{data.refundNotifyUrl}, appid = #{data.appid}, + developer_id = #{data.developerId}, + shop_id = #{data.shopId}, + http_url = #{data.httpUrl}, + sign_key = #{data.signKey}, + sn = #{data.sn}, where channel_id = #{data.channelId}