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