From 9fe0dd688c83b6b96e729167e42cdc7f9a34a2d0 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期日, 14 六月 2020 09:57:58 +0800
Subject: [PATCH] 加入日志
---
service-front/src/main/java/com/java110/front/controller/WechatGatewayController.java | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/service-front/src/main/java/com/java110/front/controller/WechatGatewayController.java b/service-front/src/main/java/com/java110/front/controller/WechatGatewayController.java
index 4a2d6f2..ff02266 100644
--- a/service-front/src/main/java/com/java110/front/controller/WechatGatewayController.java
+++ b/service-front/src/main/java/com/java110/front/controller/WechatGatewayController.java
@@ -5,6 +5,7 @@
import com.java110.core.factory.AuthenticationFactory;
import com.java110.core.factory.WechatFactory;
import com.java110.utils.constant.WechatConstant;
+import com.java110.utils.util.StringUtil;
import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
@@ -65,7 +66,7 @@
if (signature1.equals(signature)) {
if (echostr == null) {
String postStr = this.readStreamParameter(request.getInputStream());
- if (postStr == null || postStr.length() == 0) {
+ if (StringUtil.isEmpty(postStr)) {
responseStr = "鏈緭鍏ヤ换浣曞唴瀹�";
} else {
/*if (postStr.equals(new String(postStr.getBytes("ISO-8859-1"), "ISO-8859-1"))) {
@@ -195,7 +196,7 @@
}
}
- logger.debug("");
+ logger.debug("鍏紬鍙峰唴瀹�:" + buffer.toString());
return buffer.toString();
}
}
--
Gitblit v1.8.0