| 参数名 | 类型 | 描述 |
|---|---|---|
| tousername | string | 用于表示本消息对应的接受者,内容为设备的厂商corpid |
| encrypt | string | 回调消息加密体,厂商可用官方提供的json回调加解密库进行解密得到明文消息 |
注意:使用加解密库,sReceiveId 为 服务商的corpid
WXBizJsonMsgCrypt wxcpt(sToken,sEncodingAESKey,sReceiveId);
| 参数 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| Encrypt | 是 | string | 经过加密的消息结构体 |
| MsgSignature | 是 | string | 消息签名 |
| TimeStamp | 是 | string | 时间戳 |
| Nonce | 是 | string | 随机数,由企业自行生成 |
注意:使用加解密库,sReceiveId 为 服务商的corpid
WXBizJsonMsgCrypt wxcpt(sToken,sEncodingAESKey,sReceiveId);
| 参数名 | 类型 | 描述 |
|---|---|---|
| tousername | string | 用于表示本消息对应的接受者,内容为设备型号的model_id |
| encrypt | string | 回调消息加密体,厂商可用官方提供的json回调加解密库进行解密得到明文消息 |
注意:使用加解密库,sReceiveId 为 硬件型号的 model_id
WXBizJsonMsgCrypt wxcpt(sToken,sEncodingAESKey,sReceiveId);