Commit 80d86d04 authored by 李健华's avatar 李健华

Merge branch 'feature/bussiness-msg-push-20220914' into 'master'

修改请求stms返回验证

See merge request head_group/websocket-server!4
parents 5c5baf15 5b880606
......@@ -71,6 +71,7 @@ public class WebsocketMessageHandler {
if (null == supplierCode) {
this.sendResponse(ctx, request, new DefaultFullHttpResponse(request.protocolVersion(), HttpResponseStatus.FORBIDDEN, ctx.alloc().buffer()));
ctx.close();
return;
}
String mdString = paramMap.get("channelId") + "-" + supplierCode;
String relationKey = Md5Utils.MD5Encode(mdString);
......
......@@ -32,7 +32,9 @@ public class StmsServerImpl implements IStmsServer {
Result<Object> result = stmsRemoteService.getCurrentuserinfo(token);
if (result.isSuccess()) {
LinkedHashMap jsonData = (LinkedHashMap) result.getData();
return jsonData.get("supplierCode").toString();
return (String)jsonData.get("supplierCode");
} else {
throw new RuntimeException(result.getMsg());
}
} catch (Exception e) {
log.error("Exception--{}", e.getMessage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment