Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
9e3d84e7
Commit
9e3d84e7
authored
Feb 28, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加业务修改通知php
parent
0a717dff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
base-manager/src/main/java/com/mortals/xhx/common/utils/SendTask.java
.../src/main/java/com/mortals/xhx/common/utils/SendTask.java
+2
-7
No files found.
base-manager/src/main/java/com/mortals/xhx/common/utils/SendTask.java
View file @
9e3d84e7
...
...
@@ -28,17 +28,12 @@ public class SendTask implements Runnable {
@Override
public
void
run
()
{
ApiThirdPartyReq
<
String
>
apiThirdPartyReq
=
new
ApiThirdPartyReq
<>();
apiThirdPartyReq
.
setCode
(
YesNoEnum
.
YES
.
getValue
());
apiThirdPartyReq
.
setType
(
MessageTypeEnum
.
TRANSACTION
.
getValue
());
apiThirdPartyReq
.
setData
(
content
);
String
resp
=
null
;
try
{
Map
<
String
,
String
>
header
=
new
HashMap
<>();
header
.
put
(
HEADER_CONTENT_TYPE
,
"application/json"
);
String
reqStr
=
JSON
.
toJSONString
(
apiThirdPartyReq
);
log
.
info
(
"sendUrl:{} \n sendMessageReq:{}"
,
sendUrl
,
reqStr
);
resp
=
HttpUtil
.
doPost
(
sendUrl
,
header
,
reqStr
);
log
.
info
(
"sendUrl:{} \n sendMessageReq:{}"
,
sendUrl
,
content
);
resp
=
HttpUtil
.
doPost
(
sendUrl
,
header
,
content
);
log
.
debug
(
"sendMessageResp:{}"
,
resp
);
}
catch
(
Exception
e
)
{
log
.
error
(
"异常:"
,
e
);
...
...
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