- 将skuName中的图片外移至dataResource
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user