This commit is contained in:
lcw
2025-10-26 12:25:50 +08:00
parent 5e18952b55
commit ea3022c3f6
617 changed files with 86322 additions and 185615 deletions

View File

@ -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;
}