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
5d85c6d6
Commit
5d85c6d6
authored
2 years ago
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时运营后台--
保全支付回调
parent
176e9879
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
src/main/java/cn/timer/api/controller/insure/CallBackContorll.java
+1
-1
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
+16
-4
No files found.
src/main/java/cn/timer/api/controller/insure/CallBackContorll.java
View file @
5d85c6d6
...
...
@@ -409,7 +409,7 @@ public class CallBackContorll {
for
(
int
n
;
(
n
=
is
.
read
(
b
))
!=
-
1
;
)
{
sb
.
append
(
new
String
(
b
,
0
,
n
));
}
String
value
=
DigestUtils
.
md5Hex
(
pid
+
secretq
+
timestamp
);
String
value
=
DigestUtils
.
md5Hex
(
pid
+
secretq
+
timestamp
+
sb
.
toString
()
);
if
(!
value
.
equals
(
sign
))
{
throw
new
CustomException
(
"增员支付回调验签失败"
);
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
View file @
5d85c6d6
...
...
@@ -802,7 +802,11 @@ public class InsureContorll {
for
(
int
index
=
0
;
index
<
row
.
getPhysicalNumberOfCells
();
index
++)
{
XSSFCell
titleCell
=
titleRow
.
getCell
(
index
);
XSSFCell
cell
=
row
.
getCell
(
index
);
cell
.
setCellType
(
CellType
.
STRING
);
if
(
cell
==
null
)
{
continue
;
}
else
{
cell
.
setCellType
(
CellType
.
STRING
);
}
if
(
cell
.
getStringCellValue
().
equals
(
""
))
{
continue
;
}
...
...
@@ -912,7 +916,11 @@ public class InsureContorll {
for
(
int
index
=
0
;
index
<
row
.
getPhysicalNumberOfCells
();
index
++)
{
XSSFCell
titleCell
=
titleRow
.
getCell
(
index
);
XSSFCell
cell
=
row
.
getCell
(
index
);
cell
.
setCellType
(
CellType
.
STRING
);
if
(
cell
==
null
)
{
continue
;
}
else
{
cell
.
setCellType
(
CellType
.
STRING
);
}
if
(
cell
.
getStringCellValue
().
equals
(
""
))
{
continue
;
}
...
...
@@ -1220,7 +1228,11 @@ public class InsureContorll {
for
(
int
index
=
0
;
index
<
row
.
getPhysicalNumberOfCells
();
index
++)
{
XSSFCell
titleCell
=
titleRow
.
getCell
(
index
);
XSSFCell
cell
=
row
.
getCell
(
index
);
cell
.
setCellType
(
CellType
.
STRING
);
if
(
cell
==
null
)
{
continue
;
}
else
{
cell
.
setCellType
(
CellType
.
STRING
);
}
switch
(
ExcelUtils
.
getString
(
titleCell
))
{
case
"被保人姓名(必填)"
:
if
(
StringUtils
.
isNullOrEmpty
(
ExcelUtils
.
getString
(
cell
)))
{
...
...
@@ -1355,7 +1367,7 @@ public class InsureContorll {
/*设置验签参数*/
long
timestamp
=
System
.
currentTimeMillis
()
/
1000
;
String
sign
=
DigestUtils
.
md5Hex
(
appidq
+
secretq
+
timestamp
);
return
ResultUtil
.
data
(
importPayInfo
.
get
(
"pay_url"
).
toString
()
+
"&jump_url="
+
base_api_url
+
"/callBack/policy/payStatus?policyId="
+
insurePolicy
.
getId
()
+
"¬ify_url="
+
base_api_url
+
"/callBack/policy/batchPayCallback
?pid="
+
appidq
+
"?timestamp="
+
timestamp
+
"?sign="
+
sign
);
return
ResultUtil
.
data
(
importPayInfo
.
get
(
"pay_url"
).
toString
()
+
"&jump_url="
+
base_api_url
+
"/callBack/policy/payStatus?policyId="
+
insurePolicy
.
getId
()
+
"¬ify_url="
+
base_api_url
+
"/callBack/policy/batchPayCallback
&pid="
+
appidq
+
"&sign="
+
sign
+
"×tamp="
+
timestamp
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"重新发起支付异常:"
,
e
);
...
...
This diff is collapsed.
Click to expand it.
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