Commit e069945b authored by 5359's avatar 5359

正式环境参数修改

parent 7d092fed
Pipeline #6086 failed with stages
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
package com.hand.app.esignHclc.utils; package com.hand.app.esignHclc.utils;
import com.baidu.aip.ocr.AipOcr; import com.baidu.aip.ocr.AipOcr;
import com.hand.app.esign.utils.SignUtils;
import com.hand.app.esignHclc.dto.SignUserInfoHclc; import com.hand.app.esignHclc.dto.SignUserInfoHclc;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.apache.commons.codec.binary.Base64; import org.apache.commons.codec.binary.Base64;
...@@ -18,6 +19,8 @@ import org.apache.http.entity.StringEntity; ...@@ -18,6 +19,8 @@ import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.HttpClientBuilder; import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.message.BasicHeader; import org.apache.http.message.BasicHeader;
import org.apache.http.message.BasicNameValuePair; import org.apache.http.message.BasicNameValuePair;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.crypto.Cipher; import javax.crypto.Cipher;
import javax.crypto.KeyGenerator; import javax.crypto.KeyGenerator;
...@@ -46,6 +49,7 @@ public class SignHclcUtils { ...@@ -46,6 +49,7 @@ public class SignHclcUtils {
public static final String SECRET_KEY = "YtRDMZvCX9xqCwwqqDDBnInC0FAGoSWw"; public static final String SECRET_KEY = "YtRDMZvCX9xqCwwqqDDBnInC0FAGoSWw";
public static final String APPLICATION_JSON = "application/json"; public static final String APPLICATION_JSON = "application/json";
public static final String APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded"; public static final String APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded";
private static Logger logger = LoggerFactory.getLogger(SignHclcUtils.class);
public SignHclcUtils() { public SignHclcUtils() {
} }
...@@ -113,9 +117,9 @@ public class SignHclcUtils { ...@@ -113,9 +117,9 @@ public class SignHclcUtils {
inStream.close(); inStream.close();
result = strber.toString(); result = strber.toString();
if (httpResponse.getStatusLine().getStatusCode() == 200) { if (httpResponse.getStatusLine().getStatusCode() == 200) {
System.out.println("请求服务器成功"); logger.info("请求服务器成功, urls ={},params ={} ,contentType ={}", urls, params.toString(), contentType);
} else { } else {
System.out.println("请求服务端失败"); logger.info("请求服务端失败, urls ={},params ={} ,contentType ={}", urls, params.toString(), contentType);
} }
return result; return result;
......
...@@ -30,26 +30,26 @@ ...@@ -30,26 +30,26 @@
<root level="ERROR"> <root level="ERROR">
<appender-ref ref="STDOUT" /> <appender-ref ref="STDOUT"/>
<!-- <appender-ref ref="stash" /> --> <!-- <appender-ref ref="stash" /> -->
</root> </root>
<logger name="org.activiti.engine" level="INFO" additivity="false"> <logger name="org.activiti.engine" level="INFO" additivity="false">
<appender-ref ref="STDOUT" /> <appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="org.activiti.spring.SpringTransactionInterceptor" level="INFO" additivity="false"> <logger name="org.activiti.spring.SpringTransactionInterceptor" level="INFO" additivity="false">
<appender-ref ref="STDOUT" /> <appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="org.apache.ibatis.transaction.managed.ManagedTransaction" level="INFO" additivity="false"> <logger name="org.apache.ibatis.transaction.managed.ManagedTransaction" level="INFO" additivity="false">
<appender-ref ref="STDOUT" /> <appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="org.quartz.core.QuartzSchedulerThread" level="INFO" additivity="false"> <logger name="org.quartz.core.QuartzSchedulerThread" level="INFO" additivity="false">
<appender-ref ref="STDOUT" /> <appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="org.springframework.scheduling.quartz.LocalDataSourceJobStore" level="WARN" additivity="false"> <logger name="org.springframework.scheduling.quartz.LocalDataSourceJobStore" level="WARN" additivity="false">
<appender-ref ref="STDOUT" /> <appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="org.quartz.impl.jdbcjobstore.StdRowLockSemaphore" level="INFO" additivity="false"> <logger name="org.quartz.impl.jdbcjobstore.StdRowLockSemaphore" level="INFO" additivity="false">
<appender-ref ref="STDOUT" /> <appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="org.apache.pdfbox" level="INFO" additivity="false"> <logger name="org.apache.pdfbox" level="INFO" additivity="false">
...@@ -61,6 +61,9 @@ ...@@ -61,6 +61,9 @@
<logger name="esign.utils" level="INFO" additivity="false"> <logger name="esign.utils" level="INFO" additivity="false">
<appender-ref ref="STDOUT"/> <appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="com.hand.app.esignHclc.utils.SignHclcUtils" level="INFO" additivity="false">
<appender-ref ref="STDOUT"/>
</logger>
<logger name="com.timevale" level="INFO" additivity="false"> <logger name="com.timevale" level="INFO" additivity="false">
<appender-ref ref="STDOUT"/> <appender-ref ref="STDOUT"/>
</logger> </logger>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment