微信官方文档地址:subscribeMessage.send | 微信开放文档
相关开发代码:
@Service
public class WxMessageSendServiceImpl extends BaseService implements IWxMessageSendService {
/**
* 定义编码格式 UTF-8
*/
public static final String URL_PARAM_DECODECHARSET_UTF8 = "UTF-8";
// redis中保存的access_token
public static final String WXNIMI_ACCESS_TOKEN = "WXNIMI_ACCESS_TOKEN";
// access_token接口调用凭证
public static final String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential"
+ "&appid=APPID&secret=APPSECRET";
// 微信消息发送
public static final String REQUEST_URL = "https://api.weixin.qq