7 changed files with 78 additions and 15 deletions
@ -0,0 +1,46 @@ |
|||
package com.elink.esua.epdc.utils; |
|||
|
|||
import cn.binarywang.wx.miniapp.api.WxMaService; |
|||
import com.elink.esua.epdc.wx.ma.WxMaConfig; |
|||
import org.springframework.beans.factory.annotation.Value; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 获取小程序业务工具 |
|||
* |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/25 13:29 |
|||
*/ |
|||
@Component |
|||
public class WxMaServiceUtils { |
|||
|
|||
@Value("${wx.ma.appId.normal}") |
|||
private String APPID_NORMAL; |
|||
|
|||
@Value("${wx.ma.appId.work}") |
|||
private String APPID_WORK; |
|||
|
|||
/** |
|||
* 获取党群e家 普通居民端配置 |
|||
* |
|||
* @return cn.binarywang.wx.miniapp.api.WxMaService |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/25 16:09 |
|||
*/ |
|||
public final WxMaService normalWxMaService() { |
|||
final WxMaService wxMaService = WxMaConfig.getMaService(APPID_NORMAL); |
|||
return wxMaService; |
|||
} |
|||
|
|||
/** |
|||
* 获取党群e家 工作端配置 |
|||
* |
|||
* @return cn.binarywang.wx.miniapp.api.WxMaService |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/25 16:10 |
|||
*/ |
|||
public final WxMaService workWxMaService() { |
|||
final WxMaService wxMaService = WxMaConfig.getMaService(APPID_WORK); |
|||
return wxMaService; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue