Modify the UUID format to uppercase

This commit is contained in:
2025-10-24 01:54:45 +08:00
parent f03d2d0b12
commit abea88da82
5 changed files with 21 additions and 19 deletions

View File

@@ -278,7 +278,7 @@ func AppCreateHandler(w http.ResponseWriter, r *http.Request) {
// 确保UUID和Secret被设置虽然BeforeCreate钩子应该处理这些但为了保险起见
if app.UUID == "" {
app.UUID = uuid.New().String()
app.UUID = strings.ToUpper(uuid.New().String())
}
if app.Secret == "" {
// 生成32位大写16进制随机字符