1
0
mirror of synced 2026-10-17 04:46:10 +08:00

add signature check

This commit is contained in:
Daniel Qian
2014-08-22 14:52:11 +08:00
parent d81324a7cd
commit e5e729918b
3 changed files with 51 additions and 1 deletions

View File

@@ -9,6 +9,18 @@ import chanjarster.weixin.exception.WxErrorException;
*/
public interface WxService {
/**
* <pre>
* 验证推送过来的消息的正确性
* 详情请见: http://mp.weixin.qq.com/wiki/index.php?title=接入指南
* </pre>
* @param timestamp
* @param nonce
* @param signature
* @return
*/
public boolean checkSignature(String timestamp, String nonce, String signature);
/**
* <pre>
* 获取access_token,本方法线程安全