- 七牛云资源添加前缀区分

This commit is contained in:
gazebo
2019-05-24 17:38:16 +08:00
parent cc43c1429f
commit e94361295f
3 changed files with 3 additions and 3 deletions

View File

@@ -334,7 +334,7 @@ func DownloadFileByURL(fileURL string) (bodyData []byte, fileMD5 string, err err
/////
func GenPicFileName(suffix string) string {
return fmt.Sprintf("%x%s", md5.Sum([]byte(utils.GetUUID()+suffix)), suffix)
return fmt.Sprintf("image/%x%s", md5.Sum([]byte(utils.GetUUID()+suffix)), suffix)
}
func GuessVendorIDFromVendorStoreID(vendorStoreID int64) (vendorID int) {