Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-support-rlwx
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rl
hls-support-rlwx
Commits
e069945b
Commit
e069945b
authored
May 12, 2020
by
5359
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
正式环境参数修改
parent
7d092fed
Pipeline
#6086
failed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
+16
-9
SignHclcUtils.java
...main/java/com/hand/app/esignHclc/utils/SignHclcUtils.java
+6
-2
logback.xml
core/src/main/resources/logback.xml
+10
-7
No files found.
core/src/main/java/com/hand/app/esignHclc/utils/SignHclcUtils.java
View file @
e069945b
...
...
@@ -6,6 +6,7 @@
package
com
.
hand
.
app
.
esignHclc
.
utils
;
import
com.baidu.aip.ocr.AipOcr
;
import
com.hand.app.esign.utils.SignUtils
;
import
com.hand.app.esignHclc.dto.SignUserInfoHclc
;
import
com.alibaba.fastjson.JSONObject
;
import
org.apache.commons.codec.binary.Base64
;
...
...
@@ -18,6 +19,8 @@ import org.apache.http.entity.StringEntity;
import
org.apache.http.impl.client.HttpClientBuilder
;
import
org.apache.http.message.BasicHeader
;
import
org.apache.http.message.BasicNameValuePair
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
javax.crypto.Cipher
;
import
javax.crypto.KeyGenerator
;
...
...
@@ -46,6 +49,7 @@ public class SignHclcUtils {
public
static
final
String
SECRET_KEY
=
"YtRDMZvCX9xqCwwqqDDBnInC0FAGoSWw"
;
public
static
final
String
APPLICATION_JSON
=
"application/json"
;
public
static
final
String
APPLICATION_FORM_URLENCODED
=
"application/x-www-form-urlencoded"
;
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
SignHclcUtils
.
class
);
public
SignHclcUtils
()
{
}
...
...
@@ -113,9 +117,9 @@ public class SignHclcUtils {
inStream
.
close
();
result
=
strber
.
toString
();
if
(
httpResponse
.
getStatusLine
().
getStatusCode
()
==
200
)
{
System
.
out
.
println
(
"请求服务器成功"
);
logger
.
info
(
"请求服务器成功, urls ={},params ={} ,contentType ={}"
,
urls
,
params
.
toString
(),
contentType
);
}
else
{
System
.
out
.
println
(
"请求服务端失败"
);
logger
.
info
(
"请求服务端失败, urls ={},params ={} ,contentType ={}"
,
urls
,
params
.
toString
(),
contentType
);
}
return
result
;
...
...
core/src/main/resources/logback.xml
View file @
e069945b
...
...
@@ -30,26 +30,26 @@
<root
level=
"ERROR"
>
<appender-ref
ref=
"STDOUT"
/>
<appender-ref
ref=
"STDOUT"
/>
<!-- <appender-ref ref="stash" /> -->
</root>
<logger
name=
"org.activiti.engine"
level=
"INFO"
additivity=
"false"
>
<appender-ref
ref=
"STDOUT"
/>
<appender-ref
ref=
"STDOUT"
/>
</logger>
<logger
name=
"org.activiti.spring.SpringTransactionInterceptor"
level=
"INFO"
additivity=
"false"
>
<appender-ref
ref=
"STDOUT"
/>
<appender-ref
ref=
"STDOUT"
/>
</logger>
<logger
name=
"org.apache.ibatis.transaction.managed.ManagedTransaction"
level=
"INFO"
additivity=
"false"
>
<appender-ref
ref=
"STDOUT"
/>
<appender-ref
ref=
"STDOUT"
/>
</logger>
<logger
name=
"org.quartz.core.QuartzSchedulerThread"
level=
"INFO"
additivity=
"false"
>
<appender-ref
ref=
"STDOUT"
/>
<appender-ref
ref=
"STDOUT"
/>
</logger>
<logger
name=
"org.springframework.scheduling.quartz.LocalDataSourceJobStore"
level=
"WARN"
additivity=
"false"
>
<appender-ref
ref=
"STDOUT"
/>
<appender-ref
ref=
"STDOUT"
/>
</logger>
<logger
name=
"org.quartz.impl.jdbcjobstore.StdRowLockSemaphore"
level=
"INFO"
additivity=
"false"
>
<appender-ref
ref=
"STDOUT"
/>
<appender-ref
ref=
"STDOUT"
/>
</logger>
<logger
name=
"org.apache.pdfbox"
level=
"INFO"
additivity=
"false"
>
...
...
@@ -61,6 +61,9 @@
<logger
name=
"esign.utils"
level=
"INFO"
additivity=
"false"
>
<appender-ref
ref=
"STDOUT"
/>
</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"
>
<appender-ref
ref=
"STDOUT"
/>
</logger>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment