Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
32d7c5e9
Commit
32d7c5e9
authored
May 04, 2023
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
投保文件配置
parent
3d3f63c5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
+5
-5
src/main/resources/application-pro.yml
+2
-2
No files found.
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
View file @
32d7c5e9
...
...
@@ -150,20 +150,20 @@ public class InsureContorll {
* @param sign
* @return
*/
protected
static
Map
setParams
(
String
sign
,
String
appid
,
String
secret
)
{
protected
static
Map
setParams
(
String
sign
,
String
uappid
,
String
u
secret
)
{
/*当前时间戳*/
long
timestamp
=
System
.
currentTimeMillis
()
/
1000
;
log
.
info
(
"时间戳"
+
timestamp
);
Map
paramsMap
=
Maps
.
newHashMap
();
paramsMap
.
put
(
"pid"
,
appid
);
paramsMap
.
put
(
"pid"
,
u
appid
);
paramsMap
.
put
(
"timestamp"
,
String
.
valueOf
(
timestamp
));
paramsMap
.
put
(
"trace_id"
,
appid
+
timestamp
+
new
Random
().
nextInt
((
9999
-
100
)
+
1
)
+
10
);
paramsMap
.
put
(
"trace_id"
,
u
appid
+
timestamp
+
new
Random
().
nextInt
((
9999
-
100
)
+
1
)
+
10
);
// paramsMap.put("sign",Md5.md5(appid+secret+timestamp+sign.trim()));
String
value
;
if
(
sign
==
null
)
{
value
=
appid
+
secret
+
timestamp
;
value
=
uappid
+
u
secret
+
timestamp
;
}
else
{
value
=
appid
+
secret
+
timestamp
+
sign
;
value
=
uappid
+
u
secret
+
timestamp
+
sign
;
log
.
info
(
"body参数======"
+
sign
);
}
paramsMap
.
put
(
"sign"
,
DigestUtils
.
md5Hex
(
value
));
...
...
src/main/resources/application-pro.yml
View file @
32d7c5e9
...
...
@@ -283,9 +283,9 @@ insure:
issue
:
'
https://portal.unistar-ins.com/cps/Labor/Policy/issue'
#保全appid
appidq
:
'
10007
11000604326196
'
appidq
:
'
10007
06050307154062
'
#保全 secret
secretq
:
'
a2da17a2797c63dff9172df50af9da65
'
secretq
:
'
c1e2e8dcf231c0d0dfc883c09cd42c5b
'
#保全上传文件
uploadUrlq
:
'
https://portal.unistar-ins.com/fuli/Home/Index/file_upload'
#保全申请
...
...
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