@Service public class QywxNoticeService extends Object
| 构造器和说明 |
|---|
QywxNoticeService() |
@Comment(value="\u53d1\u9001\u6d88\u606f") public void send(Long userId, String title, String content) throws Exception
userId - 用户IDtitle - 消息标题(用于存储)content - 消息内容Exception - 当用户未绑定企业微信时抛出异常public String sendMsg(String openId, String content) throws BusiException
openId - 接收消息的用户OpenIdcontent - 消息内容BusiException - 发送过程中的业务异常public cn.hutool.json.JSONObject getUserInfo(String code) throws BusiException
code - 用户授权后获得的一次性授权码BusiException - 获取过程中发生的业务异常Copyright © 2026. All rights reserved.