|
@@ -569,8 +569,8 @@ class SRIConnection(asyncio.Protocol):
|
|
|
"""
|
|
|
o1 = protobuf.CSState()
|
|
|
o1.ParseFromString(body_data)
|
|
|
- methods.debug_log(f"{self.connection_id}|SRIConnection530", f"----------------- #state: {o1.state}")
|
|
|
- methods.debug_log(f"{self.connection_id}|SRIConnection530", f"#uid: {o1.uid}")
|
|
|
+ methods.debug_log(f"{self.connection_id}|SRIConnection|572", f"#state: {o1.state}")
|
|
|
+ methods.debug_log(f"{self.connection_id}|SRIConnection|572", f"#uid: {o1.uid}")
|
|
|
|
|
|
|
|
|
for item in clients.values():
|
|
@@ -584,8 +584,7 @@ class SRIConnection(asyncio.Protocol):
|
|
|
"""
|
|
|
o2 = protobuf.SCState()
|
|
|
o2.state = o1.state
|
|
|
-
|
|
|
- o2.uid = o1.uid
|
|
|
+ o2.uid = o1.uid
|
|
|
re_command_id = protobuf.SC_State
|
|
|
re_body_length = o2.ByteSize()
|
|
|
re_head_data = struct.pack(self.head_sequence, re_command_id, re_body_length)
|
|
@@ -596,8 +595,7 @@ class SRIConnection(asyncio.Protocol):
|
|
|
|
|
|
|
|
|
for item in clients.values():
|
|
|
-
|
|
|
- if item.client_info.get('connection_id') == 10101089:
|
|
|
+ if item.client_info.get('connection_id') == o1.uid:
|
|
|
"""
|
|
|
Leave: 消息体
|
|
|
Leave.peer: int32(车端rid)
|
|
@@ -613,9 +611,6 @@ class SRIConnection(asyncio.Protocol):
|
|
|
re_body_data = o3.SerializeToString()
|
|
|
re_send_data = re_head_data + re_body_data
|
|
|
methods.debug_log(f"{self.connection_id}|SRIConnection611", f"re_command_id: {re_command_id}")
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
item.client.write(re_send_data)
|
|
|
|
|
|
@staticmethod
|