|
@@ -1,8 +1,10 @@
|
|
|
+import MD5 from "js-md5";
|
|
|
+
|
|
|
export const YYYYMMDDHHmmss = "YYYY-MM-DD HH:mm:ss";
|
|
|
export const PLATFORM = "WEB";
|
|
|
|
|
|
if (!localStorage.getItem("deviceId")) {
|
|
|
- localStorage.setItem("deviceId", Math.random() + "-" + Date.now());
|
|
|
+ localStorage.setItem("deviceId", MD5(Math.random() + "-" + Date.now()));
|
|
|
}
|
|
|
export const DEVICE_ID = localStorage.getItem("deviceId");
|
|
|
|