feat: 修改密码增加密码登录选项
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user