java110
2020-06-14 9fe0dd688c83b6b96e729167e42cdc7f9a34a2d0
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();
    }
}