Commit a616bd9e by 罗长华

添加日志

parent a34164c1
......@@ -55,6 +55,8 @@ public class SignatureChecker {
String serverSignature = new HmacSHA256Signature().computeSignature(appSecret, canonicalString);
log.info("服务端api签名结果: {}", serverSignature);
log.info("服务端api appSecret: {}", appSecret);
if (!serverSignature.equals(clientSignature)) {
// 返回给用户的response中告诉用户正确的用于验证加密的签名字符串
throw new AuthenticationException("token 错误");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment