Lv100版本源码上传

This commit is contained in:
西瓜°
2024-11-04 14:45:20 +08:00
parent a98bdaf4e0
commit a6dbccdead
3431 changed files with 139917 additions and 75 deletions
+18
View File
@@ -0,0 +1,18 @@
import hashlib
import sys
from .storex import store
def get_mac_address():
try:
import wmi
uniqueCode = store.get("uniqueCode")
if uniqueCode == None:
w = wmi.WMI()
uniqueCode = hashlib.md5(
w.Win32_DiskDrive()[0].SerialNumber.encode(
encoding='UTF-8')).hexdigest()
store.set("uniqueCode", uniqueCode)
return uniqueCode
except:
return ''