From b4968b330974b0af5ea5d2996633315b2f80a47a Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期六, 12 十月 2024 16:25:22 +0800
Subject: [PATCH] 代码初始化

---
 /dev/null |   48 ------------------------------------------------
 1 files changed, 0 insertions(+), 48 deletions(-)

diff --git a/server/meeting/meeting_service/src/main/java/com/doumee/core/wx/WxMiniConfig.java b/server/meeting/meeting_service/src/main/java/com/doumee/core/wx/WxMiniConfig.java
deleted file mode 100644
index 4a85ef7..0000000
--- a/server/meeting/meeting_service/src/main/java/com/doumee/core/wx/WxMiniConfig.java
+++ /dev/null
@@ -1,84 +0,0 @@
-package com.doumee.core.wx;
-
-import cn.binarywang.wx.miniapp.api.WxMaService;
-import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl;
-import cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl;
-import com.doumee.config.mybatis.SpringUtils;
-import org.apache.commons.lang3.StringUtils;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.context.annotation.Configuration;
-
-import javax.annotation.PostConstruct;
-
-/**
- * 寰俊灏忕▼搴忕粍浠�
- */
-@Configuration
-public class WxMiniConfig {
-    public static WxMaService wxMaService;
-
-    @Autowired
-    private WxPayProperties wxPayProperties;
-
-    public static WxMiniConfig me() {
-        return SpringUtils.get().getBean(WxMiniConfig.class);
-    }
-
-    @PostConstruct
-    void init() {
-        this.load_WxMaService();
-//        this.load_wxPayService();
-//        this.load_wxAppPayService();
-    }
-    /**
-     * 鍒濆鍖栧井淇″皬绋嬪簭
-     */
-    public void load_WxMaService() {
-        WxMaDefaultConfigImpl config = new WxMaDefaultConfigImpl();
-        config.setAppid(StringUtils.trimToNull(wxPayProperties.getAppId()));
-        config.setSecret(StringUtils.trimToNull(wxPayProperties.getAppSecret()));
-        config.setMsgDataFormat("JSON");
-        //config.setToken("");
-        //config.setAesKey("");
-        WxMaService wxMaService = new WxMaServiceImpl();
-        wxMaService.setWxMaConfig(config);
-        this.wxMaService = wxMaService;
-    }
-
-    /**
-     * 鍒濆鍖栧井淇″皬绋嬪簭鏀粯
-     */
-//    public void load_wxPayService() {
-//        WxPayConfig payConfig = new WxPayConfig();
-//        payConfig.setTradeType(WxPayConstants.TradeType.JSAPI);
-//        payConfig.setSignType(WxPayConstants.SignType.MD5);
-//        payConfig.setAppId(StringUtils.trimToNull(wxPayProperties.getAppId()));
-//        payConfig.setMchId(StringUtils.trimToNull(wxPayProperties.getMchId()));
-//        payConfig.setMchKey(StringUtils.trimToNull(wxPayProperties.getMchKey()));
-//        payConfig.setKeyPath(StringUtils.trimToNull(wxPayProperties.getKeyPath()));
-//        payConfig.setNotifyUrl(StringUtils.trimToNull(wxPayProperties.getNotifyUrl()));
-//        WxPayService wxPayService = new WxPayServiceImpl();
-//        wxPayService.setConfig(payConfig);
-//        this.wxPayService = wxPayService;
-//    }
-
-
-
-//    /**
-//     * 鍒濆鍖朅pp鏀粯
-//     */
-//    public void load_wxAppPayService() {
-//        WxPayConfig payConfig = new WxPayConfig();
-//        payConfig.setTradeType(WxPayConstants.TradeType.APP);
-//        payConfig.setSignType(WxPayConstants.SignType.MD5);
-//        payConfig.setAppId("");
-//        payConfig.setMchId(StringUtils.trimToNull(sysDictService.getSysDictValue(SysDictEnum.WX_MINI_MchId.getCode())));
-//        payConfig.setMchKey(StringUtils.trimToNull(sysDictService.getSysDictValue(SysDictEnum.WX_MINI_MchKey.getCode())));
-//        payConfig.setKeyPath(StringUtils.trimToNull(sysDictService.getSysDictValue(SysDictEnum.WX_MINI_KeyPath.getCode())));
-//        payConfig.setNotifyUrl(StringUtils.trimToNull(sysDictService.getSysDictValue(SysDictEnum.WX_MINI_NotifyUrl.getCode())));
-//        WxPayService wxPayService = new WxPayServiceImpl();
-//        wxPayService.setConfig(payConfig);
-//        this.wxAppPayService = wxPayService;
-//    }
-
-}
diff --git a/server/meeting/meeting_service/src/main/java/com/doumee/core/wx/WxPayProperties.java b/server/meeting/meeting_service/src/main/java/com/doumee/core/wx/WxPayProperties.java
deleted file mode 100644
index efe67cb..0000000
--- a/server/meeting/meeting_service/src/main/java/com/doumee/core/wx/WxPayProperties.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package com.doumee.core.wx;
-
-import lombok.Data;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-import org.springframework.stereotype.Component;
-
-/**
- * Created by IntelliJ IDEA.
- *
- * @Author : Rk
- * @create 2023/3/22 18:04
- */
-@Component
-@ConfigurationProperties(prefix = "wx.pay")
-@Data
-public class WxPayProperties {
-
-    /**
-     * AppID
-     */
-    private String appId;
-
-    /**
-     * AppSecret
-     */
-    private String appSecret;
-
-    /**
-     * 寰俊鍟嗘埛鍙�
-     */
-    private String mchId;
-
-    /**
-     * 鏀粯API瀵嗛挜
-     */
-    private String mchKey;
-
-    /**
-     * 鏀粯鍥炶皟鍦板潃
-     */
-    private String notifyUrl;
-
-    /**
-     * 鏀粯璇佷功(p12)
-     */
-    private String keyPath;
-
-}

--
Gitblit v1.9.3