记得上下班打卡 | 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
90a9325c
Commit
90a9325c
authored
Apr 20, 2022
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log
parent
44369bf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
ConsumerGoblinBizIntegralReceiver.java
...mer/kylin/receiver/ConsumerGoblinBizIntegralReceiver.java
+7
-0
No files found.
liquidnet-bus-service/liquidnet-service-consumer-all/liquidnet-service-consumer-kylin/src/main/java/com/liquidnet/service/consumer/kylin/receiver/ConsumerGoblinBizIntegralReceiver.java
View file @
90a9325c
...
@@ -32,14 +32,18 @@ public class ConsumerGoblinBizIntegralReceiver extends AbstractBizRedisReceiver
...
@@ -32,14 +32,18 @@ public class ConsumerGoblinBizIntegralReceiver extends AbstractBizRedisReceiver
@Override
@Override
protected
boolean
consumerMessageHandler
(
String
msg
)
{
protected
boolean
consumerMessageHandler
(
String
msg
)
{
long
s
=
System
.
currentTimeMillis
();
boolean
aBoolean
=
false
;
boolean
aBoolean
=
false
;
try
{
try
{
GoblinQueueBizIntegralDto
fromJsonObj
=
JsonUtils
.
fromJson
(
msg
,
GoblinQueueBizIntegralDto
.
class
);
GoblinQueueBizIntegralDto
fromJsonObj
=
JsonUtils
.
fromJson
(
msg
,
GoblinQueueBizIntegralDto
.
class
);
log
.
info
(
"转换s:{}"
,
System
.
currentTimeMillis
()
-
s
);
if
(
fromJsonObj
==
null
)
{
if
(
fromJsonObj
==
null
)
{
log
.
warn
(
"CONSUMER MSG NULL_DTO ==> [{}]:{}"
,
this
.
getRedisStreamKey
(),
msg
);
log
.
warn
(
"CONSUMER MSG NULL_DTO ==> [{}]:{}"
,
this
.
getRedisStreamKey
(),
msg
);
aBoolean
=
true
;
aBoolean
=
true
;
}
else
{
}
else
{
log
.
info
(
"开始请求s:{}"
,
System
.
currentTimeMillis
()
-
s
);
aBoolean
=
this
.
bizIntegralProcessing
(
fromJsonObj
);
aBoolean
=
this
.
bizIntegralProcessing
(
fromJsonObj
);
log
.
info
(
"请求结束s:{}"
,
System
.
currentTimeMillis
()
-
s
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"CONSUMER MSG EX_HANDLE ==> [{}]:{}"
,
this
.
getRedisStreamKey
(),
msg
,
e
);
log
.
error
(
"CONSUMER MSG EX_HANDLE ==> [{}]:{}"
,
this
.
getRedisStreamKey
(),
msg
,
e
);
...
@@ -65,11 +69,14 @@ public class ConsumerGoblinBizIntegralReceiver extends AbstractBizRedisReceiver
...
@@ -65,11 +69,14 @@ public class ConsumerGoblinBizIntegralReceiver extends AbstractBizRedisReceiver
params
.
add
(
"content"
,
content
);
params
.
add
(
"content"
,
content
);
params
.
add
(
"uid"
,
uid
);
params
.
add
(
"uid"
,
uid
);
String
resultData
=
""
;
String
resultData
=
""
;
long
ss
=
System
.
currentTimeMillis
();
log
.
info
(
"HttpUtil s:{}"
,
ss
);
if
(
type
==
1
)
{
if
(
type
==
1
)
{
resultData
=
HttpUtil
.
post
(
stoneUrl
+
"/user/logs/in2111"
,
params
,
header
);
resultData
=
HttpUtil
.
post
(
stoneUrl
+
"/user/logs/in2111"
,
params
,
header
);
}
else
{
}
else
{
resultData
=
HttpUtil
.
post
(
stoneUrl
+
"/user/logs/de2111"
,
params
,
header
);
resultData
=
HttpUtil
.
post
(
stoneUrl
+
"/user/logs/de2111"
,
params
,
header
);
}
}
log
.
info
(
"HttpUtil e:{}"
,
System
.
currentTimeMillis
()
-
ss
);
log
.
info
(
"bizIntegralProcessing result:{}"
,
resultData
);
log
.
info
(
"bizIntegralProcessing result:{}"
,
resultData
);
return
true
;
return
true
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
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