修改SNAPI内部路径,修改UA头

This commit is contained in:
2025-09-13 17:13:26 +08:00
parent 8ed1e3a4da
commit f9e1ffe04e
20 changed files with 44 additions and 28 deletions

View File

@@ -75,4 +75,12 @@ def CheckPortAvailable(port : int) -> bool:
import socket
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
return s.connect_ex(('localhost', port)) != 0
return False
return False
def GetDeviceInfo() -> str:
"""
获取设备信息
:return:
"""
import platform
return platform.system() + platform.version() + platform.machine()