优化页面
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
"use strict";
|
||||
function generateRandomString(length = 6) {
|
||||
const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
||||
let result = "";
|
||||
for (let i = 0; i < length; i++) {
|
||||
result += chars[Math.floor(Math.random() * chars.length)];
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function generateMsgId() {
|
||||
const randomPart = generateRandomString();
|
||||
const timestamp = Date.now();
|
||||
return `${randomPart}${timestamp}`;
|
||||
}
|
||||
exports.generateMsgId = generateMsgId;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/generateMsgId.js.map
|
||||
Reference in New Issue
Block a user