From 7178b27a6ab5c69b8ce566f09825b402c4acf129 Mon Sep 17 00:00:00 2001 From: xhxu Date: Tue, 12 Apr 2022 10:38:24 +0800 Subject: [PATCH] update tt --- .../toutiao/api/impl/TtOpenComponentServiceImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mallinkService/src/main/java/com/iformall/service/toutiao/api/impl/TtOpenComponentServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/toutiao/api/impl/TtOpenComponentServiceImpl.java index 743edb7..b0ad87f 100644 --- a/mallinkService/src/main/java/com/iformall/service/toutiao/api/impl/TtOpenComponentServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/toutiao/api/impl/TtOpenComponentServiceImpl.java @@ -80,8 +80,15 @@ public class TtOpenComponentServiceImpl implements TtOpenComponentService { @Override public boolean checkSignature(String timestamp, String nonce, String encrypt, String signature) { try { + log.info("-----------token="+getWxOpenConfigStorage().getComponentToken() + +"---------timestamp="+timestamp + +"---------nonce="+nonce + +"---------encrypt="+encrypt + +"---------signature="+signature + ); ServerVerification verification = new ServerVerification(); String newMsgSignature = verification.getMsgSignature(getWxOpenConfigStorage().getComponentToken(),timestamp, nonce, encrypt); + log.info("------------newMsgSignature="+newMsgSignature); return verification.verify(signature,newMsgSignature); } catch (Exception e) { this.log.error("Checking signature failed, and the reason is :" + e.getMessage());