- 将skuName中的图片外移至dataResource

This commit is contained in:
gazebo
2019-09-26 08:35:26 +08:00
parent 1766adf203
commit 7f46072cc5
15 changed files with 507 additions and 171 deletions

View File

@@ -35,9 +35,6 @@ var (
model.VendorIDJD: []string{
"img30.360buyimg.com",
},
model.VendorIDMTWM: []string{
"",
},
model.VendorIDEBAI: []string{
"image-star.elemecdn.com",
},
@@ -734,3 +731,11 @@ func BatchString2Slice(strs ...string) (strList []string) {
}
return strList
}
func GetShortNameFromURL(strURL string) (shortName string) {
index := strings.LastIndex(strURL, "/")
if index > 0 {
shortName = strURL[index+1:]
}
return shortName
}