forked from gzzfw/backEnd/gz-dyh

xusd
2024-09-27 7c3418c45926b5288b22044d60dbb12fa2c982d0
dyh-service/dyh-cust/src/main/java/cn/huge/module/wechat/miniapp/service/WeixinMaService.java
@@ -11,8 +11,6 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
/**
 * @title: 小程序服务
 * @description: 小程序服务
@@ -55,6 +53,17 @@
//        this.refreshRouter();
//    }
//    public void createConfig(SeCustWechatDTO seCustWechatDTO) {
//        final WxMaInMemoryConfig config = new WxMaInMemoryConfig();
//        config.setAppid(seCustWechatDTO.getAppid());// 设置微信公众号的appid
//        config.setSecret(seCustWechatDTO.getSecret());// 设置微信公众号的app corpSecret
//        config.setToken(seCustWechatDTO.getToken());// 设置微信公众号的token
//        config.setAesKey(seCustWechatDTO.getAeskey());// 设置消息加解密密钥
//        super.setWxMaConfig(config);
//
//        this.refreshRouter();
//    }
    public void createConfig(SeCustWechatDTO seCustWechatDTO) {
        final WxMaInMemoryConfig config = new WxMaInMemoryConfig();
        config.setAppid(seCustWechatDTO.getAppid());// 设置微信公众号的appid