This commit is contained in:
2026-06-15 22:46:12 +08:00
commit f6508eccdb
38 changed files with 3133 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
export function getDeviceId() {
let id = uni.getStorageSync('deviceId')
if (!id) {
id = 'dev_' + Math.random().toString(16).slice(2) + Date.now().toString(16)
uni.setStorageSync('deviceId', id)
}
return id
}