1
0
mirror of synced 2025-12-18 13:58:11 +08:00

update test code

This commit is contained in:
Daniel Qian
2014-10-19 23:28:18 +08:00
parent 6b02facbfe
commit b04bff0496
2 changed files with 7 additions and 13 deletions

View File

@@ -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));
}
} }

View File

@@ -1,8 +1,9 @@
<xml> <xml>
<appId></appId> <appId>公众号appID</appId>
<secret></secret> <secret>公众号appsecret</secret>
<token></token> <token>公众号Token</token>
<accessToken></accessToken> <aesKey>公众号EncodingAESKey</aesKey>
<expiresIn></expiresIn> <accessToken>可以不填写</accessToken>
<openId></openId> <expiresIn>可以不填写</expiresIn>
<openId>某个加你公众号的用户的openId</openId>
</xml> </xml>