diff --git a/requirements.txt b/requirements.txt index 633d9ad7..e9c96db4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,4 @@ msgpack-python qdarkstyle SortedContainers futuquant -snappy \ No newline at end of file +wmi \ No newline at end of file diff --git a/vnpy/trader/gateway/cshshlpGateway/cshshlpGateway.py b/vnpy/trader/gateway/cshshlpGateway/cshshlpGateway.py index c3516b41..4c1424a7 100644 --- a/vnpy/trader/gateway/cshshlpGateway/cshshlpGateway.py +++ b/vnpy/trader/gateway/cshshlpGateway/cshshlpGateway.py @@ -605,7 +605,7 @@ class CshshlpTdApi(CsHsHlp): lip = interface.IPAddress[0] # 公网IP for processor in c.Win32_Processor(): - cpu = temp.processor.strip() # CPU编号 + cpu = processor.Processorid.strip() # CPU编号 for disk in c.Win32_DiskDrive(): # 硬盘编号 hdd = disk.SerialNumber.strip()