feat: 修改密码增加密码登录选项

This commit is contained in:
zzw
2026-10-23 13:55:23 +08:00
parent f5212273c2
commit 6b26a33cf4
10 changed files with 105 additions and 90 deletions
-27
View File
@@ -533,33 +533,6 @@ func GetStringByMap(m map[string]interface{}, key string) string {
return ""
}
func BuildImageURL(data interface{}) interface{} {
switch v := data.(type) {
case map[string]interface{}:
for key, val := range v {
v[key] = BuildImageURL(val)
}
return v
case []interface{}:
for i, val := range v {
v[i] = BuildImageURL(val)
}
return v
case string:
if v == "" {
return v
}
base := GetConfigString("upload.image_base_url")
return fmt.Sprintf("%s/%s", strings.TrimRight(base, "/"), strings.TrimLeft(v, "/"))
default:
return v
}
}
func ParseIntArray(value string) ([]int, error) {
var result []int