Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mid-service
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
赵啸非
mid-service
Commits
6573d229
Commit
6573d229
authored
Jan 17, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改读取配置文件
parent
8599ded5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
pom.xml
pom.xml
+1
-1
src/main/java/com/mortals/xhx/daemon/applicationservice/CaptureThread.java
.../mortals/xhx/daemon/applicationservice/CaptureThread.java
+2
-2
src/main/java/com/mortals/xhx/daemon/applicationservice/model/HcpReq.java
...m/mortals/xhx/daemon/applicationservice/model/HcpReq.java
+1
-1
No files found.
pom.xml
View file @
6573d229
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<profiles.filepath>
/tmp
</profiles.filepath>
<profiles.filepath>
/tmp
</profiles.filepath>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.log.path>
/opt/apps/mid-service/logs
</profiles.log.path>
<profiles.log.path>
/opt/apps/mid-service/logs
</profiles.log.path>
<profiles.config.path>
/
tmp
/mid.prop
</profiles.config.path>
<profiles.config.path>
/
root
/mid.prop
</profiles.config.path>
<profiles.server.port>
80
</profiles.server.port>
<profiles.server.port>
80
</profiles.server.port>
<profiles.hcpUrl>
http://192.168.0.98:8090/inter/hcpapi/hcpGrabEvaluate
</profiles.hcpUrl>
<profiles.hcpUrl>
http://192.168.0.98:8090/inter/hcpapi/hcpGrabEvaluate
</profiles.hcpUrl>
<profiles.hcpGovUrl>
https://hcp.sczwfw.gov.cn/appEval/index.html#/evalInstrument
</profiles.hcpGovUrl>
<profiles.hcpGovUrl>
https://hcp.sczwfw.gov.cn/appEval/index.html#/evalInstrument
</profiles.hcpGovUrl>
...
...
src/main/java/com/mortals/xhx/daemon/applicationservice/CaptureThread.java
View file @
6573d229
...
@@ -254,7 +254,7 @@ public class CaptureThread implements Runnable {
...
@@ -254,7 +254,7 @@ public class CaptureThread implements Runnable {
String
hcpUrl
=
hcpGovUrl
+
"?affairCode="
+
affairCode
;
String
hcpUrl
=
hcpGovUrl
+
"?affairCode="
+
affairCode
;
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"url"
,
hcpUrl
);
paramMap
.
put
(
"url"
,
hcpUrl
);
paramMap
.
put
(
"windowid"
,
hcpReq
.
getWindow
i
d
());
paramMap
.
put
(
"windowid"
,
hcpReq
.
getWindow
I
d
());
log
.
info
(
"req url:{},body:{}"
,
url
,
JSON
.
toJSONString
(
paramMap
));
log
.
info
(
"req url:{},body:{}"
,
url
,
JSON
.
toJSONString
(
paramMap
));
String
response
=
HttpUtil
.
post
(
url
,
paramMap
);
String
response
=
HttpUtil
.
post
(
url
,
paramMap
);
...
@@ -286,7 +286,7 @@ public class CaptureThread implements Runnable {
...
@@ -286,7 +286,7 @@ public class CaptureThread implements Runnable {
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
String
json
=
"{ } 12"
;
String
json
=
"{ } 12"
;
boolean
jsonBoolean
=
JSONValidator
.
from
(
json
).
validate
();
boolean
jsonBoolean
=
JSONValidator
.
from
(
json
).
validate
();
System
.
out
.
println
(
jsonBoolean
);
System
.
out
.
println
(
jsonBoolean
);
...
...
src/main/java/com/mortals/xhx/daemon/applicationservice/model/HcpReq.java
View file @
6573d229
...
@@ -11,7 +11,7 @@ import lombok.Data;
...
@@ -11,7 +11,7 @@ import lombok.Data;
@Data
@Data
public
class
HcpReq
{
public
class
HcpReq
{
private
Integer
window
i
d
;
//窗口id
private
Integer
window
I
d
;
//窗口id
private
String
url
;
//好差评地址,https://hcp.sczwfw.gov.cn/appEval/index.html#/evalInstrument?affairCode=511922-20210105-000597
private
String
url
;
//好差评地址,https://hcp.sczwfw.gov.cn/appEval/index.html#/evalInstrument?affairCode=511922-20210105-000597
...
...
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