Commit bd5dfdf9 by Future

去除调试代码

parent f65be0ae
...@@ -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);
} }
} }
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));
}
} }
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