public class WxMaJsonOutMessage extends Object implements WxMaOutMessage
| 限定符和类型 | 字段和说明 |
|---|---|
protected Long |
createTime |
protected String |
fromUserName |
protected String |
msgType |
protected String |
toUserName |
| 构造器和说明 |
|---|
WxMaJsonOutMessage() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
toEncryptedJson(WxMaConfig config)
转换成加密的JSON格式.
|
String |
toEncryptedXml(WxMaConfig config)
转换成加密的XML格式(对于JSON消息类型,返回加密的JSON格式).
|
String |
toJson()
转换成JSON格式.
|
String |
toXml()
转换成XML格式(对于JSON消息类型,返回JSON格式).
|
protected String toUserName
protected String fromUserName
protected Long createTime
protected String msgType
public String toJson()
toJson 在接口中 WxMaOutMessagepublic String toXml()
toXml 在接口中 WxMaOutMessagepublic String toEncryptedJson(WxMaConfig config)
toEncryptedJson 在接口中 WxMaOutMessageconfig - 配置对象public String toEncryptedXml(WxMaConfig config)
toEncryptedXml 在接口中 WxMaOutMessageconfig - 配置对象Copyright © 2026. All rights reserved.