记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
21fa5017
Commit
21fa5017
authored
Jul 01, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
快递
parent
794b7d91
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
PerformancesExpressCallbackController.java
...press/shunfeng/PerformancesExpressCallbackController.java
+3
-3
PerformancesExpressCallbackServiceImpl.java
...ress/shunfeng/PerformancesExpressCallbackServiceImpl.java
+6
-6
ShunfengSignUtils.java
...m/liquidnet/service/platform/utils/ShunfengSignUtils.java
+2
-0
No files found.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/controller/express/shunfeng/PerformancesExpressCallbackController.java
View file @
21fa5017
...
...
@@ -35,7 +35,7 @@ public class PerformancesExpressCallbackController {
@PostMapping
(
"orderStatus"
)
@ApiOperation
(
"订单状态推送"
)
public
HashMap
OrderStatus
(
PerformanceExpressPushStatusParam
performanceExpressPushStatusParam
)
{
public
HashMap
OrderStatus
(
@RequestBody
String
performanceExpressPushStatusParam
)
{
boolean
result
=
performancesExpressServiceImpl
.
orderStatus
(
performanceExpressPushStatusParam
);
HashMap
<
Object
,
Object
>
objectObjectHashMap
=
new
HashMap
<>();
if
(
result
)
{
...
...
@@ -48,7 +48,7 @@ public class PerformancesExpressCallbackController {
@PostMapping
(
"orderRoute"
)
@ApiOperation
(
"路由推送"
)
public
HashMap
listOrderRoute
(
PerformanceExpressPushRouteParam
performanceExpressPushRouteParam
)
{
public
HashMap
listOrderRoute
(
@RequestBody
String
performanceExpressPushRouteParam
)
{
boolean
result
=
performancesExpressServiceImpl
.
orderRoute
(
performanceExpressPushRouteParam
);
HashMap
<
Object
,
Object
>
objectObjectHashMap
=
new
HashMap
<>();
if
(
result
)
{
...
...
@@ -61,7 +61,7 @@ public class PerformancesExpressCallbackController {
@PostMapping
(
"orderFreightList"
)
@ApiOperation
(
"清单运费推送"
)
public
HashMap
getListFreight
(
PerformanceExpressPushFreightParam
performanceExpressPushFreightParam
)
{
public
HashMap
getListFreight
(
@RequestBody
String
performanceExpressPushFreightParam
)
{
boolean
result
=
performancesExpressServiceImpl
.
orderFreightList
(
performanceExpressPushFreightParam
);
HashMap
<
Object
,
Object
>
objectObjectHashMap
=
new
HashMap
<>();
if
(
result
)
{
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/express/shunfeng/PerformancesExpressCallbackServiceImpl.java
View file @
21fa5017
...
...
@@ -77,9 +77,9 @@ public class PerformancesExpressCallbackServiceImpl extends ServiceImpl<KylinOrd
@Autowired
private
RedisUtil
redisUtil
;
public
boolean
orderStatus
(
PerformanceExpressPushStatusParam
performanceExpressPushStatusParam
)
{
public
boolean
orderStatus
(
String
performanceExpressPushStatusParam
)
{
boolean
res
=
shunfengSignUtils
.
receiveRequestAndCheckSign
(
JsonUtils
.
toJson
(
performanceExpressPushStatusParam
)
,
httpServletRequest
);
boolean
res
=
shunfengSignUtils
.
receiveRequestAndCheckSign
(
performanceExpressPushStatusParam
,
httpServletRequest
);
System
.
out
.
println
(
performanceExpressPushStatusParam
);
System
.
out
.
println
(
res
);
...
...
@@ -93,9 +93,9 @@ public class PerformancesExpressCallbackServiceImpl extends ServiceImpl<KylinOrd
return
false
;
}
public
boolean
orderFreightList
(
PerformanceExpressPushFreightParam
performanceExpressPushFreightParam
)
{
public
boolean
orderFreightList
(
String
performanceExpressPushFreightParam
)
{
boolean
res
=
shunfengSignUtils
.
receiveRequestAndCheckSign
(
JsonUtils
.
toJson
(
performanceExpressPushFreightParam
)
,
httpServletRequest
);
boolean
res
=
shunfengSignUtils
.
receiveRequestAndCheckSign
(
performanceExpressPushFreightParam
,
httpServletRequest
);
System
.
out
.
println
(
performanceExpressPushFreightParam
);
System
.
out
.
println
(
res
);
...
...
@@ -118,9 +118,9 @@ public class PerformancesExpressCallbackServiceImpl extends ServiceImpl<KylinOrd
return
false
;
}
public
boolean
orderRoute
(
PerformanceExpressPushRouteParam
performanceExpressPushRouteParam
)
{
public
boolean
orderRoute
(
String
performanceExpressPushRouteParam
)
{
boolean
res
=
shunfengSignUtils
.
receiveRequestAndCheckSign
(
JsonUtils
.
toJson
(
performanceExpressPushRouteParam
)
,
httpServletRequest
);
boolean
res
=
shunfengSignUtils
.
receiveRequestAndCheckSign
(
performanceExpressPushRouteParam
,
httpServletRequest
);
System
.
out
.
println
(
performanceExpressPushRouteParam
);
System
.
out
.
println
(
res
);
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/utils/ShunfengSignUtils.java
View file @
21fa5017
...
...
@@ -86,6 +86,8 @@ public class ShunfengSignUtils {
}
// 请求方参数+请求方时间戳+SK 生成签名
String
thisSign
=
genSign
(
timestamp
,
params
);
System
.
out
.
println
(
params
);
System
.
out
.
println
(
thisSign
);
// 获取的签名和请求方签名比较是否一致
if
(!
thisSign
.
equals
(
sign
))
{
System
.
out
.
println
(
"签名错误"
);
...
...
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