|
@@ -53,8 +53,8 @@ class SRIConnection(asyncio.Protocol):
|
|
|
"""
|
|
|
peername = client.get_extra_info('peername')
|
|
|
|
|
|
- self.connection_id = int(f"{peername[1]}")
|
|
|
-
|
|
|
+
|
|
|
+ self.connection_id = int(f"{peername[0].replace('.', '')}")
|
|
|
self.client = client
|
|
|
|
|
|
self.client_type = None
|
|
@@ -620,7 +620,7 @@ class SRIConnection(asyncio.Protocol):
|
|
|
o3 = protobuf.UserActivityInfo()
|
|
|
o3.user_uuid = 'SSGGSSEEFFHHWWSS'
|
|
|
o3.cockpit_id = self.connection_id
|
|
|
- o3.vehicle_id = 112233
|
|
|
+ o3.vehicle_id = o1.uid
|
|
|
re_command_id = protobuf.S2V_SendUserInfo
|
|
|
re_body_length = o3.ByteSize()
|
|
|
re_head_data = struct.pack(self.head_sequence, re_command_id, re_body_length)
|