Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
recv_data_longhua
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 247ab678
authored
Oct 19, 2020
by
xmh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
事件类型修正
1 parent
33885f4f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
src/main/java/com/viontech/process/BehaviorProcess.java
src/main/resources/sjlx.properties
src/main/java/com/viontech/process/BehaviorProcess.java
View file @
247ab67
...
@@ -57,8 +57,8 @@ public class BehaviorProcess implements Process {
...
@@ -57,8 +57,8 @@ public class BehaviorProcess implements Process {
String
eventType
=
jsonObject
.
getString
(
"event_type"
);
String
eventType
=
jsonObject
.
getString
(
"event_type"
);
if
(
eventType
!=
null
)
{
if
(
eventType
!=
null
)
{
// eventType
// eventType
String
eventStr
=
eventProp
.
getProperty
(
eventType
,
"0
x0
0000000"
);
String
eventStr
=
eventProp
.
getProperty
(
eventType
,
"00000000"
);
int
event
=
Integer
.
getInteger
(
eventStr
,
16
);
int
event
=
Integer
.
parseInt
(
eventStr
,
16
);
model
.
setEventCode
(
event
);
model
.
setEventCode
(
event
);
}
}
...
...
src/main/resources/sjlx.properties
View file @
247ab67
yichangtingche
=
0x00000001
nixing
=
0x00000002
24
=
0x00000003
huanxing
=
0x00000005
vehicle
=
0x0000000a
yongdu
=
0x00000007
1
=
0x0000001f
black
=
0x00000021
white
=
0x00000022
32
=
0x00000023
5
=
0x00000024
hengfu
=
0x00000027
4
=
0x00000028
jishui
=
0x0000003d
14
=
0x0000003e
daobantingche
=
0x00000062
\ No newline at end of file
\ No newline at end of file
yichangtingche
=
00000001
nixing
=
00000002
24
=
00000003
huanxing
=
00000005
vehicle
=
0000000a
yongdu
=
00000007
1
=
0000001f
black
=
00000021
white
=
00000022
32
=
00000023
5
=
00000024
hengfu
=
00000027
4
=
00000028
jishui
=
0000003d
14
=
0000003e
daobantingche
=
00000062
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment