Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
bd5dfdf9
Commit
bd5dfdf9
authored
Apr 26, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除调试代码
parent
f65be0ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
31 deletions
+10
-31
core/src/main/java/com/wecloud/dispatch/common/BaseRequest.java
+0
-1
core/src/main/java/com/wecloud/dispatch/general/GeneralMessageHandler.java
+10
-30
No files found.
core/src/main/java/com/wecloud/dispatch/common/BaseRequest.java
View file @
bd5dfdf9
...
@@ -40,6 +40,5 @@ public class BaseRequest extends HashMap<String, Object> implements Request{
...
@@ -40,6 +40,5 @@ public class BaseRequest extends HashMap<String, Object> implements Request{
public
void
setReqId
(
String
reqId
)
{
public
void
setReqId
(
String
reqId
)
{
this
.
put
(
REQ_ID
,
reqId
);
this
.
put
(
REQ_ID
,
reqId
);
}
}
}
}
core/src/main/java/com/wecloud/dispatch/general/GeneralMessageHandler.java
View file @
bd5dfdf9
package
com
.
wecloud
.
dispatch
.
general
;
package
com
.
wecloud
.
dispatch
.
general
;
import
com.alibaba.fastjson.JSON
;
import
io.geekidea.springbootplus.framework.common.api.ApiCode
;
import
io.geekidea.springbootplus.framework.common.exception.BusinessException
;
import
io.geekidea.springbootplus.framework.common.exception.DaoException
;
import
io.geekidea.springbootplus.framework.common.exception.SpringBootPlusException
;
import
io.netty.channel.ChannelHandlerContext
;
import
io.netty.channel.socket.nio.NioSocketChannel
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.lang.Nullable
;
import
org.springframework.stereotype.Component
;
import
com.wecloud.dispatch.common.BaseRequest
;
import
com.wecloud.dispatch.common.BaseRequest
;
import
com.wecloud.dispatch.extend.ActionMessage
;
import
com.wecloud.dispatch.extend.ActionMessage
;
import
com.wecloud.dispatch.extend.ArgumentBox
;
import
com.wecloud.dispatch.extend.ArgumentBox
;
...
@@ -23,6 +10,16 @@ import com.wecloud.im.exception.VerificationCodeException;
...
@@ -23,6 +10,16 @@ import com.wecloud.im.exception.VerificationCodeException;
import
com.wecloud.im.ws.model.WsResponse
;
import
com.wecloud.im.ws.model.WsResponse
;
import
com.wecloud.im.ws.sender.ChannelSender
;
import
com.wecloud.im.ws.sender.ChannelSender
;
import
com.wecloud.utils.JsonUtils
;
import
com.wecloud.utils.JsonUtils
;
import
io.geekidea.springbootplus.framework.common.api.ApiCode
;
import
io.geekidea.springbootplus.framework.common.exception.BusinessException
;
import
io.geekidea.springbootplus.framework.common.exception.DaoException
;
import
io.geekidea.springbootplus.framework.common.exception.SpringBootPlusException
;
import
io.netty.channel.ChannelHandlerContext
;
import
io.netty.channel.socket.nio.NioSocketChannel
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.lang.Nullable
;
import
org.springframework.stereotype.Component
;
/**
/**
...
@@ -107,21 +104,4 @@ public class GeneralMessageHandler {
...
@@ -107,21 +104,4 @@ public class GeneralMessageHandler {
}
}
}
}
public
static
void
main
(
String
[]
args
)
{
String
str
=
"{\"conversationId\":1518190080274190336,\"attributes\":\"{\\\"count\\\":1}\"}"
;
// 解析jsonO
BaseRequest
baseRequest
=
JsonUtils
.
decodeJson
(
str
,
BaseRequest
.
class
);
System
.
out
.
println
(
JSON
.
toJSONString
(
baseRequest
));
}
}
}
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