|
@@ -1,8 +1,8 @@
|
|
|
package com.persagy.entity;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
-import com.alibaba.fastjson.annotation.JSONField;
|
|
|
import com.persagy.constant.CommonConst;
|
|
|
+import com.persagy.netty.client.NettyClient;
|
|
|
import com.persagy.netty.domain.protocol.Command;
|
|
|
import com.persagy.netty.domain.protocol.Packet;
|
|
|
import lombok.AllArgsConstructor;
|
|
@@ -56,7 +56,7 @@ public class NettyMessage<T> extends Packet implements Serializable {
|
|
|
|
|
|
|
|
|
public NettyMessage(int opCode) {
|
|
|
- this.channelId = CommonConst.projectId;
|
|
|
+ this.channelId = NettyClient.channel.id().toString();
|
|
|
this.projectId = CommonConst.projectId;
|
|
|
this.groupCode = CommonConst.groupCode;
|
|
|
this.opCode = opCode;
|