| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import com.ruoyi.common.config.WechatConfig; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.domain.QyWechatArticle; |
| | |
| | | @Autowired |
| | | private SysUserMapper userMapper; |
| | | |
| | | @Autowired |
| | | private WechatConfig wechatConfig; |
| | | /** |
| | | * 发送企业微信消息 |
| | | */ |
| | |
| | | } |
| | | |
| | | @Override |
| | | public boolean sendNotifyMessageWithDefaultAppId(Long userId, String title, String content, String businessUrl){ |
| | | String appId=wechatConfig.getAppId(); |
| | | return sendNotifyMessage(userId,title,content,appId,businessUrl); |
| | | } |
| | | @Override |
| | | public boolean sendNotifyMessage(Long userId, String title, String content, String appId, String businessUrl) { |
| | | try { |
| | | // 检查服务是否启用 |