Przeglądaj źródła

企业微信回调接口配置, 增加cropid 接收id 日志打印

zhouy 1 rok temu
rodzic
commit
8ef8e4f181

+ 2 - 2
qywx-sdk/build.gradle

@@ -1,6 +1,6 @@
 dependencies {
-    compile "org.springframework:spring-web"
-    compile "org.springframework:spring-context"
+    compile 'org.springframework.boot:spring-boot-starter-web'
+    compile 'org.springframework.boot:spring-boot-starter-jdbc'
     compile "$fastjson"
     testCompile "junit:junit"
 }

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

@@ -1,5 +1,7 @@
 package com.usoftchina.qywx.sdk.weixin;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import javax.crypto.Cipher;
 import javax.crypto.spec.IvParameterSpec;
@@ -8,8 +10,6 @@ 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 {
@@ -17,7 +17,7 @@ public class WXBizJsonMsgCrypt {
 	private byte[] aesKey;
 	private String token;
 	private String receiveid;
-	private final Logger logger = LoggerFactory.getLogger(WXBizJsonMsgCrypt.class);
+	private Logger logger = LoggerFactory.getLogger(getClass());
 
 	/**
 	 * 构造函数