| | |
| | | private WeiXinProperties weiXinProperties; |
| | | @Resource |
| | | private RedisUtils redisUtils; |
| | | @Value("${wx.enabled}") |
| | | private Boolean wxEnabled; |
| | | @Value("${oying.enabled}") |
| | | private Boolean oyingEnabled; |
| | | @Resource |
| | | private UserSubscribeService subscribeService; |
| | | @Resource |
| | |
| | | */ |
| | | public void sendMessage(Map<String, Object> data, String openid, String templateId, String page) { |
| | | JSONObject jsonObject = new JSONObject(); |
| | | if (wxEnabled) { |
| | | if (oyingEnabled) { |
| | | String url = weiXinProperties.getSendMessage(); |
| | | url = url.replace("{accessToken}", getStableAccessToken()); |
| | | Map<String, Object> map = getSendMessageDto(data, openid, templateId, page); |