New file |
| | |
| | | package com.ruoyi.auction.config; |
| | | |
| | | import cn.binarywang.wx.miniapp.api.WxMaService; |
| | | import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl; |
| | | import cn.binarywang.wx.miniapp.config.WxMaConfig; |
| | | import cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppConfig |
| | | * @description: TODO |
| | | * @date 2023年02月17日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Configuration |
| | | public class AppConfig { |
| | | |
| | | |
| | | @Bean |
| | | public WxMaService wxMaService() { |
| | | WxMaService service = new WxMaServiceImpl(); |
| | | service.setWxMaConfig(memberWxMaConfig()); |
| | | return service; |
| | | } |
| | | |
| | | @Bean |
| | | public WxMaConfig memberWxMaConfig(){ |
| | | WxMaDefaultConfigImpl config = new WxMaDefaultConfigImpl(); |
| | | config.setAppid("wxb7f0ea286fc4e535"); |
| | | config.setSecret("852a2512a6ab559cafc68bae5d4160ac"); |
| | | return config; |
| | | } |
| | | } |