提交
This commit is contained in:
@@ -102,6 +102,11 @@ func (e *LocalEngine) GetURL(storageKey string) string {
|
||||
return "/storage/" + storageKey
|
||||
}
|
||||
|
||||
// GetFullPath 获取文件在磁盘上的完整路径
|
||||
func (e *LocalEngine) GetFullPath(storageKey string) string {
|
||||
return filepath.Join(e.BasePath, storageKey)
|
||||
}
|
||||
|
||||
// GenerateStorageKey 生成存储路径
|
||||
func GenerateStorageKey(md5, extension string) string {
|
||||
now := time.Now()
|
||||
|
||||
Reference in New Issue
Block a user