记得上下班打卡 | 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
1b2aa1b9
Commit
1b2aa1b9
authored
Jul 07, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
35fc0497
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
ShunfengSignUtils.java
.../client/admin/zhengzai/kylin/utils/ShunfengSignUtils.java
+15
-14
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/utils/ShunfengSignUtils.java
View file @
1b2aa1b9
...
@@ -64,13 +64,6 @@ public class ShunfengSignUtils {
...
@@ -64,13 +64,6 @@ public class ShunfengSignUtils {
* @return
* @return
*/
*/
public
String
generateSignatureAndRequest
(
HashMap
<
String
,
Object
>
hbody
,
String
url
)
{
public
String
generateSignatureAndRequest
(
HashMap
<
String
,
Object
>
hbody
,
String
url
)
{
KylinOrderExpress
kylinOrderExpresstest
=
new
KylinOrderExpress
();
String
sss
=
APP_ID
.
concat
(
"-"
).
concat
(
URL
).
concat
(
"-"
).
concat
(
SK
);
kylinOrderExpresstest
.
setRemark
(
sss
);
kylinOrderExpressMapper
.
update
(
kylinOrderExpresstest
,
new
UpdateWrapper
<
KylinOrderExpress
>().
in
(
"order_express_id"
,
"4277059374923776311218"
)
);
long
currentTimeMillis
=
System
.
currentTimeMillis
();
// 时间戳
long
currentTimeMillis
=
System
.
currentTimeMillis
();
// 时间戳
String
timestamp
=
currentTimeMillis
+
""
;
String
timestamp
=
currentTimeMillis
+
""
;
hbody
.
put
(
"companyId"
,
APP_ID
);
hbody
.
put
(
"companyId"
,
APP_ID
);
...
@@ -104,23 +97,25 @@ public class ShunfengSignUtils {
...
@@ -104,23 +97,25 @@ public class ShunfengSignUtils {
return
EntityUtils
.
toString
(
entity
,
"utf-8"
);
return
EntityUtils
.
toString
(
entity
,
"utf-8"
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
kylinOrderExpresstest
.
setRemark
(
"1"
);
KylinOrderExpress
kylinOrderExpresstest
=
new
KylinOrderExpress
();
kylinOrderExpresstest
.
setRemark
(
e
.
getMessage
());
kylinOrderExpressMapper
.
update
(
kylinOrderExpressMapper
.
update
(
kylinOrderExpresstest
kylinOrderExpresstest
,
new
UpdateWrapper
<
KylinOrderExpress
>().
in
(
"order_express_id"
,
"4277
155059580928598770
"
)
,
new
UpdateWrapper
<
KylinOrderExpress
>().
in
(
"order_express_id"
,
"4277
059374923776311218
"
)
);
);
System
.
out
.
println
(
"发送请求失败"
);
System
.
out
.
println
(
"发送请求失败"
);
e
.
printStackTrace
();
e
.
printStackTrace
();
}
finally
{
}
finally
{
kylinOrderExpresstest
.
setRemark
(
"2"
);
kylinOrderExpressMapper
.
update
(
kylinOrderExpresstest
,
new
UpdateWrapper
<
KylinOrderExpress
>().
in
(
"order_express_id"
,
"4283919842787328538414"
)
);
if
(
client
!=
null
)
{
if
(
client
!=
null
)
{
try
{
try
{
client
.
close
();
client
.
close
();
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
KylinOrderExpress
kylinOrderExpresstest
=
new
KylinOrderExpress
();
kylinOrderExpresstest
.
setRemark
(
e
.
getMessage
());
kylinOrderExpressMapper
.
update
(
kylinOrderExpresstest
,
new
UpdateWrapper
<
KylinOrderExpress
>().
in
(
"order_express_id"
,
"4277155059580928598770"
)
);
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
}
...
@@ -128,6 +123,12 @@ public class ShunfengSignUtils {
...
@@ -128,6 +123,12 @@ public class ShunfengSignUtils {
try
{
try
{
response
.
close
();
response
.
close
();
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
KylinOrderExpress
kylinOrderExpresstest
=
new
KylinOrderExpress
();
kylinOrderExpresstest
.
setRemark
(
e
.
getMessage
());
kylinOrderExpressMapper
.
update
(
kylinOrderExpresstest
,
new
UpdateWrapper
<
KylinOrderExpress
>().
in
(
"order_express_id"
,
"4283919842787328538414"
)
);
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
}
...
...
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