update test code
This commit is contained in:
@@ -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>
|
<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>
|
||||||
|
|||||||
Reference in New Issue
Block a user