Просмотр исходного кода

企业微信回调接口配置, 增加cropid的获取配置

zhouy 3 месяцев назад
Родитель
Сommit
7cf027b03d

+ 4 - 0
qywx-sdk/src/main/java/com/usoftchina/qywx/sdk/weixin/WXBizJsonMsgCrypt.java

@@ -8,6 +8,8 @@ import java.nio.charset.Charset;
 import java.util.Arrays;
 import java.util.Base64;
 import java.util.Random;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 
 public class WXBizJsonMsgCrypt {
@@ -15,6 +17,7 @@ public class WXBizJsonMsgCrypt {
 	private byte[] aesKey;
 	private String token;
 	private String receiveid;
+	private final Logger logger = LoggerFactory.getLogger(WXBizJsonMsgCrypt.class);
 
 	/**
 	 * 构造函数
@@ -158,6 +161,7 @@ public class WXBizJsonMsgCrypt {
 		}
 
 		// receiveid不相同的情况
+		logger.info("Qywx cropid Check from_receiveid{} ,receiveid{}");
 		if (!from_receiveid.equals(receiveid)) {
 			throw new AesException(AesException.ValidateCorpidError);
 		}