刘俊驰 1 年之前
父節點
當前提交
6854121683

+ 8 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/PaymentMerchantConfig.java

@@ -83,6 +83,14 @@ public class PaymentMerchantConfig implements Serializable {
 	@TableField(value = "wx_app_secret_")
     private String wxAppSecret;
 
+    @ApiModelProperty("微信小程序key")
+    @TableField(value = "wx_lite_id_")
+    private String wxLiteId;
+
+    @ApiModelProperty("微信小程序secret")
+    @TableField(value = "wx_lite_secret_")
+    private String wxLiteSecret;
+
     @ApiModelProperty("小程序appId")
     @TableField(value = "mini_app_id_")
     private String miniAppId;

+ 2 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/PaymentMerchantConfigServiceImpl.java

@@ -62,6 +62,8 @@ public class PaymentMerchantConfigServiceImpl extends ServiceImpl<PaymentMerchan
                 adapayPayConfig.setKeyPrivate(config.getRsaPrivateKey());
                 adapayPayConfig.setWxAppId(config.getWxAppId());
                 adapayPayConfig.setWxAppSecret(config.getWxAppSecret());
+                adapayPayConfig.setMiniAppId(config.getWxLiteId());
+                adapayPayConfig.setMiniAppSecret(config.getWxLiteSecret());
                 adapayPayConfig.setSupportCreditCards(properties.getSupportCreditCards());
                 try {
                     AdapayPaymentServicePlugin plugin = new AdapayPaymentServicePlugin(config.getPaymentVendor(), adapayPayConfig, false);

+ 2 - 0
cooleshow-user/user-biz/src/main/resources/config/mybatis/PaymentMerchantConfigMapper.xml

@@ -23,6 +23,8 @@
         , t.alipay_private_key_ AS alipayPrivateKey
         , t.alipay_public_key_ AS alipayPublicKey
         , t.pay_channel_ AS payChannel
+        , t.wx_lite_id_ AS wxLiteId
+        , t.wx_lite_secret_ AS wxLiteSecret
         , t.create_time_ AS createTime
         , t.update_time_ AS updateTime
         </sql>