Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-push
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
qg-push
Commits
80d86d04
Commit
80d86d04
authored
Oct 31, 2022
by
李健华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/bussiness-msg-push-20220914' into 'master'
修改请求stms返回验证 See merge request head_group/websocket-server!4
parents
5c5baf15
5b880606
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
WebsocketMessageHandler.java
...n/java/cn/quantgroup/handler/WebsocketMessageHandler.java
+1
-0
StmsServerImpl.java
src/main/java/cn/quantgroup/server/impl/StmsServerImpl.java
+3
-1
No files found.
src/main/java/cn/quantgroup/handler/WebsocketMessageHandler.java
View file @
80d86d04
...
@@ -71,6 +71,7 @@ public class WebsocketMessageHandler {
...
@@ -71,6 +71,7 @@ public class WebsocketMessageHandler {
if
(
null
==
supplierCode
)
{
if
(
null
==
supplierCode
)
{
this
.
sendResponse
(
ctx
,
request
,
new
DefaultFullHttpResponse
(
request
.
protocolVersion
(),
HttpResponseStatus
.
FORBIDDEN
,
ctx
.
alloc
().
buffer
()));
this
.
sendResponse
(
ctx
,
request
,
new
DefaultFullHttpResponse
(
request
.
protocolVersion
(),
HttpResponseStatus
.
FORBIDDEN
,
ctx
.
alloc
().
buffer
()));
ctx
.
close
();
ctx
.
close
();
return
;
}
}
String
mdString
=
paramMap
.
get
(
"channelId"
)
+
"-"
+
supplierCode
;
String
mdString
=
paramMap
.
get
(
"channelId"
)
+
"-"
+
supplierCode
;
String
relationKey
=
Md5Utils
.
MD5Encode
(
mdString
);
String
relationKey
=
Md5Utils
.
MD5Encode
(
mdString
);
...
...
src/main/java/cn/quantgroup/server/impl/StmsServerImpl.java
View file @
80d86d04
...
@@ -32,7 +32,9 @@ public class StmsServerImpl implements IStmsServer {
...
@@ -32,7 +32,9 @@ public class StmsServerImpl implements IStmsServer {
Result
<
Object
>
result
=
stmsRemoteService
.
getCurrentuserinfo
(
token
);
Result
<
Object
>
result
=
stmsRemoteService
.
getCurrentuserinfo
(
token
);
if
(
result
.
isSuccess
())
{
if
(
result
.
isSuccess
())
{
LinkedHashMap
jsonData
=
(
LinkedHashMap
)
result
.
getData
();
LinkedHashMap
jsonData
=
(
LinkedHashMap
)
result
.
getData
();
return
jsonData
.
get
(
"supplierCode"
).
toString
();
return
(
String
)
jsonData
.
get
(
"supplierCode"
);
}
else
{
throw
new
RuntimeException
(
result
.
getMsg
());
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"Exception--{}"
,
e
.
getMessage
());
log
.
error
(
"Exception--{}"
,
e
.
getMessage
());
...
...
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