mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Fix: get execute file path dynamically
This commit is contained in:
@@ -83,7 +83,7 @@ func (image *Thumb) Save(path string) (err error) {
|
||||
// CreateAvatar 创建头像
|
||||
func (image *Thumb) CreateAvatar(uid uint) error {
|
||||
// 读取头像相关设定
|
||||
savePath := model.GetSettingByName("avatar_path")
|
||||
savePath := util.RelativePath(model.GetSettingByName("avatar_path"))
|
||||
s := model.GetIntSetting("avatar_size_s", 50)
|
||||
m := model.GetIntSetting("avatar_size_m", 130)
|
||||
l := model.GetIntSetting("avatar_size_l", 200)
|
||||
|
||||
Reference in New Issue
Block a user