public class ThirdCallbackConfigController extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
ThirdCallbackConfigController() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
command_business()
用于实际的业务请求,比如应用菜单的点击事件,用户消息等。
|
String |
command_verify(ThirdConfig config,
String msg_signature,
String timestamp,
String nonce,
String echostr)
仅用于在应用创建配置应用信息时的验证,企业微信服务端会向回调URL发起一个 Get 请求,当该回调URL按照约定进行了响应后,表明第三方服务具备解析企业微信推送消息的能力。
|
String |
data_business()
用于实际的业务请求,比如应用菜单的点击事件,用户消息等。
|
String |
data_verify(ThirdConfig config,
String msg_signature,
String timestamp,
String nonce,
String echostr)
仅用于在应用创建配置应用信息时的验证,企业微信服务端会向回调URL发起一个 Get 请求,当该回调URL按照约定进行了响应后,表明第三方服务具备解析企业微信推送消息的能力。
|
private String |
verify(ThirdConfig config,
String msg_signature,
String timestamp,
String nonce,
String echostr)
Url 验证,并解密 echostr
|
public String data_verify(ThirdConfig config, String msg_signature, String timestamp, String nonce, String echostr)
public String data_business()
public String command_verify(ThirdConfig config, String msg_signature, String timestamp, String nonce, String echostr)
public String command_business()
private String verify(ThirdConfig config, String msg_signature, String timestamp, String nonce, String echostr)
config - 配置信息msg_signature - 企业微信加密签名,msg_signature计算结合了企业填写的token、请求中的timestamp、nonce、加密的消息体。timestamp - 时间戳。与nonce结合使用,用于防止请求重放攻击。nonce - 随机数。与timestamp结合使用,用于防止请求重放攻击。echostr - 加密的字符串。需要解密得到消息内容明文,解密后有random、msg_len、msg、receiveid四个字段,其中msg即为消息内容明文Copyright © 2024. All rights reserved.