mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Refactor how handlers encode messages
This commit is contained in:
1 parent
00b77e80e1
commit
da1856df50
73 files changed
+138
-134
No files matched your search
@@ -242,7 +242,7 @@ public class AgentZoneHandler implements Handler {
|
||||
var handler = new NetHandler() {
|
||||
@Override
|
||||
public byte[] handle(GameSession session, byte[] message) throws Exception {
|
||||
return this.encodeMsg(failedAckId);
|
||||
return PacketHelper.encodeMsg(failedAckId);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@ public class UserSetDataHandler extends UserLoginHandler {
|
||||
ctx.result("{\"Code\":200,\"Data\":{},\"Msg\":\"OK\"}");
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class UserSetDataReqJson {
|
||||
public String Key;
|
||||
public String Value;
|
||||
|
||||
Reference in new issue
Block a user