@htyf-mp/cli 0.2.12 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/config.mjs +6 -3
package/package.json
CHANGED
package/src/config.mjs
CHANGED
|
@@ -33,9 +33,12 @@ export class ProjectConfig {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
generateAppId() {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
// 生成唯一的 UUID,然后转换为 MD5
|
|
37
|
+
// 使用时间戳和随机数确保唯一性
|
|
38
|
+
const timestamp = Date.now();
|
|
39
|
+
const randomUuid = uuidv4();
|
|
40
|
+
const uniqueString = `${timestamp}-${randomUuid}`;
|
|
41
|
+
return md5(uniqueString);
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
createProjectConfig(appName, displayName, appid, rotate) {
|