| @@ -32,11 +32,4 @@ public class WxBaseAPITest { | |||||
| Assert.assertTrue(StringUtils.isNotBlank(after)); | Assert.assertTrue(StringUtils.isNotBlank(after)); | ||||
| } | } | ||||
| public void testCheckSignature() throws WxErrorException { | |||||
| String timestamp = "1413729506"; | |||||
| String nonce = "1753282854"; | |||||
| String signature = "af210121811dce2d6f306612cb133cba490e818b"; | |||||
| Assert.assertTrue(wxService.checkSignature(timestamp, nonce, signature)); | |||||
| } | |||||
| } | } | ||||
| @@ -1,8 +1,9 @@ | |||||
| <xml> | <xml> | ||||
| <appId></appId> | |||||
| <secret></secret> | |||||
| <token></token> | |||||
| <accessToken></accessToken> | |||||
| <expiresIn></expiresIn> | |||||
| <openId></openId> | |||||
| <appId>公众号appID</appId> | |||||
| <secret>公众号appsecret</secret> | |||||
| <token>公众号Token</token> | |||||
| <aesKey>公众号EncodingAESKey</aesKey> | |||||
| <accessToken>可以不填写</accessToken> | |||||
| <expiresIn>可以不填写</expiresIn> | |||||
| <openId>某个加你公众号的用户的openId</openId> | |||||
| </xml> | </xml> | ||||