|
@@ -619,6 +619,8 @@ class SRIConnection(asyncio.Protocol):
|
|
|
|
|
|
# --- send 4016 发送全部舱端
|
|
|
for item in clients.values():
|
|
|
+ if not item.client_type:
|
|
|
+ continue
|
|
|
if item.client_type == 'cockpit':
|
|
|
"""
|
|
|
message SCState
|
|
@@ -640,6 +642,10 @@ class SRIConnection(asyncio.Protocol):
|
|
|
|
|
|
# --- send 6011 指发送车端操作用户的id
|
|
|
for item in clients.values():
|
|
|
+ if not item.client_info:
|
|
|
+ continue
|
|
|
+ if not item.client_info.get('connection_id'):
|
|
|
+ continue
|
|
|
if item.client_info.get('connection_id') == o1.uid:
|
|
|
"""
|
|
|
Leave: 消息体
|