zhangzengfei
2021-06-07 a002d27f6329cec2c3aeafa28f8d4ffd2cbf901b
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;
}