zhangzengfei
2021-06-04 570c4304b907150335f3f8e9d19c4bec6a425757
1
2
3
4
5
6
7
8
export function getDeviceUUID() {
    let deviceId = uni.getStorageSync('uni_deviceId') ||
        uni.getSystemInfoSync().deviceId ||
        uni.getSystemInfoSync().system + '_' + Math.random().toString(36).substr(2);
 
    uni.setStorageSync('uni_deviceId', deviceId)
    return deviceId;
}