lcw
This commit is contained in:
@ -105,6 +105,12 @@ export function timeValidate(date, type) {
|
||||
if (type == 'yd') {
|
||||
return `${yyyy}`
|
||||
}
|
||||
if (type == 'ym') {
|
||||
return MM
|
||||
}
|
||||
if (type == 'rm') {
|
||||
return dd
|
||||
}
|
||||
if (type == 'mm') {
|
||||
return `${yyyy}${MM}${dd}${hh}${mm}${ss}`
|
||||
}
|
||||
@ -344,3 +350,15 @@ export function setAddress(val) {
|
||||
const url = '/mosty-api/mosty-base/minio/image/download/'
|
||||
return url + val
|
||||
}
|
||||
export function getUUid() {
|
||||
var list = [];
|
||||
var hexDigits = "0123456789abcdefghijklmnopqrstuvwxyz";
|
||||
for (var i = 0; i < 32; i++) {
|
||||
list[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
|
||||
}
|
||||
list[14] = "4";
|
||||
list[19] = hexDigits.substr((list[19] & 0x3) | 0x8, 1);
|
||||
list[8] = list[13] = list[18] = list[23];
|
||||
let uuid = list.join("");
|
||||
return uuid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user